Advertisement
sandervanvugt

K8s AiO Ubuntu setup

Jun 14th, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. history
  2. 2 sudo apt install git vim bash-completion curl wget
  3. 3 git clone https://github.com/sandervanvugt/devopsinfourweeks
  4. 4 cd devopsinfourweeks/
  5. 5 ls
  6. 6 ./setup-containerd-ubu.sh
  7. 7 ./setup-kubetools-ubu.sh
  8. 8 sudo kubeadm init --pod-network-cidr=10.10.0.0/16
  9. 9 ls
  10. 10 sudo vim /etc/fstab
  11. 11 swapoff /swapfile
  12. 12 sudo swapoff /swapfile
  13. 13 sudo kubeadm init --pod-network-cidr=10.10.0.0/16
  14. 14 mkdir -p $HOME/.kube
  15. 15 sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  16. 16 sudo chown student:student .kube/config
  17. 17 sudo chown student:student $HOME/.kube/config
  18. 18 kubectl get all
  19. 19 kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
  20. 20 wget https://docs.projectcalico.org/manifests/custom-resources.yaml
  21. 21 vim custom-resources.yaml
  22. 22 kubectl create -f custom-resources.yaml
  23. 23 kubectl get pods -n calico-system
  24. 24 history
  25. 25 kubectl get pods -n calico-system
  26. 26 kubectl taint nodes --all node-role.kubernetes.io/master-
  27. 27 kubectl get all
  28. 28 kubectl create deploy nginx --image=nginx
  29. 29 kubectl get all
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement