Advertisement
sandervanvugt

CKAD day1 july21

Jul 6th, 2021
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. 1 sudo apt install -y vim git
  2. 2 git clone https://github.com/sandervanvugt/ckad
  3. 3 cd ckad
  4. 4 ./kube-setup.sh
  5. 5 sudo reboot
  6. 6 cd ckad
  7. 7 cat kube-setup.sh
  8. 8 minikube start --memory 4096 --vm-driver=kvm2
  9. 9 minikube status
  10. 10 sudo reboot
  11. 11 minikube start --memory 4096 --vm-driver=kvm2
  12. 12 minikube status
  13. 13 history
  14. 14 cd ckad
  15. 15 vim kube-setup.sh
  16. 16 minikube status
  17. 17 minikube --help
  18. 18 minikube ssh
  19. 19 kubectl get all
  20. 20 minikube dashboard
  21. 21 kubectl get all
  22. 22 kubectl create deployment firstnginx --image=nginx
  23. 23 kubectl get all
  24. 24 ls
  25. 25 ./countdown 12
  26. 26 kubectl get all
  27. 27 history
  28. 28 kubectl get all
  29. 29 kubectl delete mynginx-7bf8c6db65-x5qwc
  30. 30 kubectl delete pod mynginx-7bf8c6db65-x5qwc
  31. 31 kubectl get all
  32. 32 kubectl -h | less
  33. 33 kubectl completion -h | less
  34. 34 source <(kubectl completion bash)
  35. 35 kubectl scale deployment mynginx --replicas=3
  36. 36 kubectl get all
  37. 37 kubectl get pods -o wide
  38. 38 ./countdown 12
  39. 39 kubectl api-versions
  40. 40 kubectl api-resources | less
  41. 41 history
  42. 42 kubectl proxy --port=8001 &
  43. 43 curl http://localhost:8001/version
  44. 44 kubectl get pods
  45. 45 curl http://localhost:8001/api/v1/namespaces/default/pods | less
  46. 46 history -10
  47. 47 history | tail -10
  48. 48 kubectl get pods
  49. 49 curl http://localhost:8001/api/v1/namespaces/default/pods/firstnginx-8cdb8cd74-kbtr2
  50. 50 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/firstnginx-8cdb8cd74-kbtr2
  51. 51 kubectl get pods
  52. 52 kubectl api-resources | less
  53. 53 kubectl -h | less
  54. 54 kubectl run -h | less
  55. 55 kubectl config
  56. 56 kubectl config -h
  57. 57 kubectl config view
  58. 58 cd
  59. 59 ls -a
  60. 60 cd .kube/
  61. 61 ls
  62. 62 cat config
  63. 63 kubectl config view
  64. 64 cd
  65. 65 kubectl config view
  66. 66 kubectl run -h | less
  67. 67 kubectl run nginx --image=nginx
  68. 68 kubectl get pods
  69. 69 kubectl delete pod nginx
  70. 70 kubectl get pods
  71. 71 kubectl run nginx --image=nginx
  72. 72 kubectl describe pod nginx | less
  73. 73 kubectl run buysybox --image=busybox
  74. 74 kubectl get pods
  75. 75 kubectl describe pod buysybox | less
  76. 76 kubectl get pod buysybox -o yaml | less
  77. 77 ckad/countdown 12
  78. 78 cd ckad/
  79. 79 ls
  80. 80 vim busybox.yaml
  81. 81 kubectl api-resources | less
  82. 82 vim busybox.yaml
  83. 83 kubectl get ns
  84. 84 kubectl get pods
  85. 85 kubectl get pods -A
  86. 86 kubectl get pods -n kube-system
  87. 87 vim busybox.yaml
  88. 88 kubectl apply -f busybox.yaml
  89. 89 kubectl get pods
  90. 90 kubectl run busyblah --image=busybox --dry-run -o yaml > busyblah.yaml
  91. 91 vim busyblah.yaml
  92. 92 kubectl creaste
  93. 93 kubectl create -f busyblah.yaml
  94. 94 vim busyblah.yaml
  95. 95 kubectl create -f busyblah.yaml
  96. 96 kubectl get pods
  97. 97 kubectl explain pods
  98. 98 kubectl explain pods.spec | less
  99. 99 kubectl explain pods.spec.containers | less
  100. 100 kubectl explain --recursive pod | less
  101. 101 kubectl -h
  102. 102 kubectl label -h
  103. 103 kubectl explain pods
  104. 104 kubectl get pods
  105. 105 kubectl get pods buysybox -o yaml > buysybox.yaml
  106. 106 vim buysybox.yaml
  107. 107 history
  108.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement