sandervanvugt

kube3W feb22 day1

Feb 4th, 2022
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. student@student-virtual-machine:~/kube3weeks$ history
  2. 1 docker run nginx
  3. 2 docker run -d nginx
  4. 3 docker run nginx -d
  5. 4 docker run busybox
  6. 5 docker ps
  7. 6 docker ps -a
  8. 7 docker run -it busybox
  9. 8 docker ps
  10. 9 docker ps -a
  11. 10 docker run -it nginx sh
  12. 11 docker ps
  13. 12 docker stop adoring_banzai
  14. 13 docker ps
  15. 14 docker images
  16. 15 docker run ubi8/ubi
  17. 16 docker run fedora
  18. 17 docker images
  19. 18 docker rmi hello-world:latest
  20. 19 docker ps -a
  21. 20 docker rm hungry_gauss
  22. 21 docker rmi hello-world:latest
  23. 22 ls
  24. 23 cd dockerfile/
  25. 24 vim Dockerfile
  26. 25 sudo apt install vim
  27. 26 vim Dockerfile
  28. 27 docker build -t mymap .
  29. 28 vim Dockerfile
  30. 29 docker build -t mymap .
  31. 30 docker images
  32. 31 docker run mymap
  33. 32* docker run -it map bash
  34. 33 vim Dockerfile
  35. 34 docker build -t yourmap .
  36. 35 docker images
  37. 36 docker inspect yourmap | less
  38. 37 docker inspect mymap | less
  39. 38 docker run yourmap
  40. 39 docker run -it yourmap bash
  41. 40 cd ..
  42. 41 ls
  43. 42 ./minikube-docker-setup.sh
  44. 43 history
  45.  
  46. student@student-virtual-machine:~/kube3weeks$ history
  47. 1 minikube start --vm-driver=docker
  48. 2 ./countdown 15
  49. 3 minikube status
  50. 4 kubectl get all
  51. 5 kubectl -h | less
  52. 6 kubectl completion -h | less
  53. 7 source <(kubectl completion bash)
  54. 8 kubectl create -h | less
  55. 9 kubectl create deploy -h | less
  56. 10 kubectl create deployment myfirstapp --image=quay.io/bitnami/nginx --replicas=3
  57. 11 kubectl get all
  58. 12 ./countdown 12
  59. 13 history
  60. 14 kubectl get all
  61. 15 kubectl describe pod myfirstapp-868c68b945-2zd45
  62. 16 kubectl describe pod myfirstapp-868c68b945-2zd45 | less
  63. 17 kubectl get all
  64. 18 kubectl delete pod myfirstapp-868c68b945-2zd45
  65. 19 kubectl get all
  66. 20 kubectl run lonelypod --image=nginx
  67. 21 kubectl get all
  68. 22 kubectl delete pod lonelypod
  69. 23 kubectl get all
  70. 24 kubectl -h | less
  71. 25 kubectl delete -h | less
  72. 26 kubectl get all
  73. 27 kubectl delete deploy myfirstapp
  74. 28 kubectl get all
  75. 29 kubectl api-resources | less
  76. 30 kubectl explain deployment
  77. 31 kubectl explain deployment.spec
  78. 32 kubectl explain deployment.spec.template
  79. 33 kubectl explain deployment.spec.template.spec | less
  80. 34 cd
  81. 35 cd kube3weeks/
  82. 36 ls
  83. 37 vim multicontainer.yaml
  84. 38 kubectl explain pod
  85. 39 vim multicontainer.yaml
  86. 40 kubectl explain deployment.spec.template.spec.containers | less
  87. 41 kubectl create deployment myfirstapp --image=quay.io/bitnami/nginx --replicas=3 --dry-run=client -o yaml
  88. 42 kubectl create deployment myfirstapp --image=quay.io/bitnami/nginx --replicas=3 --dry-run=client -o yaml > myfirstapp.yaml
  89. 43 vim myfirstapp.yaml
  90. 44 kubectl create -f myfirstapp.yaml
  91. 45 kubectl get all
  92. 46 history
  93.  
Advertisement
Add Comment
Please, Sign In to add comment