Advertisement
sandervanvugt

kubeaio

Feb 22nd, 2021
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. #### RUN AS ROOT
  2. [root@kubeaio microservices]# history
  3. 1 cat /etc/redhat-release
  4. 2 yum install -y git vim bash-completion
  5. 3 nmtui
  6. 4 git clone https://github.com/sandervanvugt/devopsinfourweeks
  7. 5 cd devopsinfourweeks/
  8. 6 ls
  9. 7 cd ..
  10. 8 git clone https://github.com/sandervanvugt/microservices
  11. 9 cd microservices/
  12. 10 ls
  13. 11 vim setup-docker.sh
  14. 12 ./setup-docker.sh
  15. 13 vim setup-kubetools.sh
  16. 14 ./setup-kubetools.sh
  17. 15 free -m
  18. 16 vim /etc/fstab
  19. 17 kubeadm init --pod-network-cidr=10.10.0.0/16
  20. 18 su - student
  21. 19 history
  22.  
  23. ### RUN AS USER
  24. 1 mkdir .kube
  25. 2 sudo cp -i /etc/kubernetes/admin.conf .kube/config
  26. 3 chown student:student .kube/config
  27. 4 sudo chown student:student .kube/config
  28. 5 ls -l .kube/config
  29. 6 less .kube/config
  30. 7 kubectl get nodes
  31. 8 kubectl create -f https://docs.projectcalicao.org/manifests/tigera-operator.yaml
  32. 9 ping nu.nl
  33. 10 kubectl create -f https://docs.projectcalico.org/manifests/tigera-operator.yaml
  34. 11 kubectl get pods -n kube-system
  35. 12 wget https://docs.projectcalico.org/manifestes/custom-resources.yaml
  36. 13 sudo yum install wget -y
  37. 14 wget https://docs.projectcalico.org/manifestes/custom-resources.yaml
  38. 15 wget https://docs.projectcalico.org/manifests/custom-resources.yaml
  39. 16 vim custom-resources.yaml
  40. 17 kubectl create -f custom-resources.yaml
  41. 18 kubectl get pods -n calico-system
  42. 19 kubectl taint nodes --all node-role.kubernetes.io/master-
  43. 20 kubectl get all
  44. 21 kubectl get all -A
  45. 22 kubectl create deployment nginx --image=nginx
  46. 23 kubectl get all
  47. 24 ls
  48. 25 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement