Advertisement
sandervanvugt

CKA cluster setup

May 30th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. student@control:~/cka$ history
  2. 1 sudo apt install vim git -y
  3. 2 vim /etc/hosts
  4. 3 sudo -i
  5. 4 git clone https://github.com/sandervanvugt/cka
  6. 5 ip a
  7. 6 ip route show
  8. 7 sudo -i
  9. 8 history
  10. 9 git clone https://github.com/sandervanvugt/cka
  11. 10 cd cka
  12. 11 ls *sh
  13. 12 sudo ./setup-container.sh
  14. 13 ls *sh
  15. 14 sudo ./setup-kubetools.sh
  16. 15 history
  17. 16 sudo kubeadm init
  18. 17 kubectl get all
  19. 18 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/tigera-operator.yaml
  20. 19 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
  21. 20 kubectl get ns
  22. 21 kubectl get pods
  23. 22 kubectl get pods -n tigera-operator
  24. 23 kubectl get pods -n kube-system
  25. 24 kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
  26. 25 kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.26.0/manifests/custom-resources.yaml
  27. 26 kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/calico.yaml
  28. 27 kubectl get ns
  29. 28 kubectl get pods
  30. 29 kubectl get pods -n kube-system
  31. 30 kubectl get nodes
  32. 31 kubectl create deploy testginx --image=nginx
  33. 32 kubectl get pods
  34. 33 kubectl get nodes
  35. 34 history
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement