Advertisement
sandervanvugt

setting up K8s AiO

Apr 12th, 2021
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. [student@kube1 ~]$ history
  2. 1 echo welcome to class we are starting at 9:00
  3. 2 sudo -i
  4. 3 sudo git clone https://github.com/sandervanvugt/ckad
  5. 4 cd ckad
  6. 5 ls
  7. 6 sudo ./setup-docker.sh
  8. 7 sudo ./setup-kubetools.sh
  9. 8 sudo systemctl status dockerd
  10. 9 sudo systemctl status docker
  11. 10 sudo kubeadm init --pod-network-cidr=10.10.0.0/16
  12. 11 mkdir .kube
  13. 12 pwd
  14. 13 ls -a
  15. 14 cd ..
  16. 15 mkdir .kube
  17. 16 sudo cp -i /etc/kubernetes/admin.conf .kube/config
  18. 17 sudo chown student:student .kube/config
  19. 18 ls -l .kube/config
  20. 19 kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
  21. 20 wget https://docs.projectcalico.org/manifests/custom-resources.yaml
  22. 21 vim custom-resources.yaml
  23. 22 kubectl create -f custom-resources.yaml
  24. 23 kubectl get pods -n calico-system
  25. 24 kubectl taint nodes --all node-role.kubernetes.io/master-
  26. 25 kubectl get pods -n calico-system
  27. 26 kubectl get all
  28. 27 history
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement