Advertisement
sandervanvugt

CKAD day 1 oct21

Oct 13th, 2021
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. 1 minikube start --vm-driver=docker
  2. 2 history
  3. 3 ls
  4. 4 minikube status
  5. 5 minikube dashboard
  6. 6 kubectl get all
  7. 7 curl 10.99.11.196
  8. 8 minikube ssh
  9. 9 ls
  10. 10 kubectl version
  11. 11 ls
  12. 12 ./countdown 13
  13. 13 kubectl api-resources | less
  14. 14 kubectl get all
  15. 15 kubectl get pods -o wide
  16. 16 kubectl delete pod removemeginx-b4b69d8d7-qkmmp
  17. 17 kubectl get all
  18. 18 kubectl api-versions
  19. 19 minikube ssh
  20. 20 kubectl --v=10 get pods
  21. 21 kubectl proxy --port=8001 &
  22. 22 curl http://localhost:8001/version
  23. 23 curl http://localhost:8001/api/v1/namespaces/default/pods
  24. 24 curl http://localhost:8001/api/v1/namespaces/default/pods/removemeginx-b4b69d8d7-4mds4
  25. 25 curl -XDELETE http://localhost:8001/api/v1/namespaces/default/pods/removemeginx-b4b69d8d7-4mds4
  26. 26 kubectl get pods
  27. 27 kubectl -h
  28. 28 kubectl -h | less
  29. 29 kubectl create -h | less
  30. 30 kubectl create serviceaccount -h | less
  31. 31 kubectl completion -h
  32. 32 source <(kubectl completion bash)
  33. 33 kubectl config view
  34. 34 cd ~/.kube/c
  35. 35 cd ~/.kube/
  36. 36 vim config
  37. 37 cd -
  38. 38 history; sleep 2; ./countdown 12
  39. 39 history; sleep 120; ./countdown 10
  40. 40 kubectl get pods
  41. 41 kubectl run -h | less
  42. 42 kubectl run ghost --image=ghost:0.9
  43. 43 kubectl get pods
  44. 44 kubectl describe pod ghost
  45. 45 kubectl get pods ghost
  46. 46 kubectl get pods ghost -o yaml | less
  47. 47 kubectl get pods
  48. 48 kubectl delete pod ghost
  49. 49 kubectl get pods
  50. 50 kubectl explain pods
  51. 51 kubectl explain pods.spec
  52. 52 kubectl explain pods.spec.containers
  53. 53 kubectl explain --recursive pods.spec | less
  54. 54 history
  55. 55 kubectl run ghost --image=ghost:0.9 --dry-run=client -o yaml > myghost.yaml
  56. 56 vim myghost.yaml
  57. 57 kubectl api-resources | less
  58. 58 vim myghost.yaml
  59. 59 kubectl create -f myghost.yaml
  60. 60 vim myghost.yaml
  61. 61 kubectl apply -f myghost.yaml
  62. 62 kubectl replace -f myghost.yaml
  63. 63 kubectl get pods
  64. 64 history
  65. 65 kubectl delete -f myghost.yaml
  66. 66 vim myghost.yaml
  67. 67 kubectl apply -f myghost.yaml
  68. 68 vim myghost.yaml
  69. 69 kubectl apply -f myghost.yaml
  70. 70 ./countdown 10
  71. 71 vim sidecar.yaml
  72. 72 kubectl create -f sidecar.yaml
  73. 73 kubectl exec -it sidecar-pod -c sidecar /bin/bash
  74. 74 vim morevolumes.yaml
  75. 75 vim initpod.yaml
  76. 76 kubectl create -f initpod.yaml
  77. 77 kubectl get pods
  78. 78 kubectl delete -f initpod.yaml
  79. 79 vim initpod.yaml
  80. 80 kubectl create -f initpod.yaml
  81. 81 kubectl get pods
  82. 82 vim sidecar.yaml
  83. 83 kubectl run mydb --image=mariadb
  84. 84 kubectl get all
  85. 85 kubectl describe pod mydb
  86. 86 kubectl logs mydb
  87. 87 kubectl delete pod mydb
  88. 88 kubectl run -h | less
  89. 89 kubectl run mydb --image=mariadb --env=MARIADB_ROOT_PASSWORD=password
  90. 90 kubectl get pods
  91. 91 kubectl exec -it mydb -- sh
  92. 92 history
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement