sandervanvugt

microservices oct20

Oct 1st, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. 1 apt install vim git
  2. 2 sudo apt install vim git
  3. 3 git clone https://github.com/sandervanvugt/microservices
  4. 4 cd microservices/
  5. 5 ls
  6. 6 vim kube-setup.sh
  7. 7 ./kube-setup.sh
  8. 8 sudo reboot
  9. 9 cd microservices/
  10. 10 ls
  11. 11 tail kube-setup.sh
  12. 12 minikube start --memory 4096 --vm-driver=kvm2
  13. 13 kubectl get all
  14. 14 cd ..
  15. 15 free -m
  16. 16 df -h
  17. 17 sudo grep vmx /proc/cpuinfo
  18. 18 history
  19. 19 cd microservices/
  20. 20 ls
  21. 21 history
  22. 22 cd ..
  23. 23 git clone https://github.com/sandervanvugt/luth
  24. 24 luth/countdown 12
  25. 25 history
  26. 26 minikube status
  27. 27 minikube dashboard
  28. 28 kubectl help | less
  29. 29 kubectl completion -h | less
  30. 30 source <(kubectl completion bash)
  31. 31 kubectl get all
  32. 32 kubectl delete pod nonginx-bd877969b-g6d7x ; kubectl get all
  33. 33 kubectl create deployment -h | less
  34. 34 kubectl create deployment my-dep --image=busybox -- sleep 3600
  35. 35 kubectl get all
  36. 36 kubectl describe service nonginx
  37. 37 kubectl run -h | less
  38. 38 kubectl run nginx --image=nginx
  39. 39 kubectl get all
  40. 40 kubectl delete pod nginx
  41. 41 kubectl get all
  42. 42 kubectl run -h
  43. 43 kubectl run --image=mariadb
  44. 44 kubectl run --image=mariadb mydb
  45. 45 kubectl get pods
  46. 46 kubectl logs mydb
  47. 47 luth/countdown 12
  48. 48 cd microservices/
  49. 49 ls
  50. 50 cd lesson13lab/
  51. 51 ls
  52. 52 vim kustomization.yaml
  53. 53 kubectl kustomize -h | less
  54. 54 kubectl kustomize .
  55. 55 kubectl get all
  56. 56 kubectl create -h | less
  57. 57 kubectl create -k .
  58. 58 cd ..
  59. 59 ls
  60. 60 vim nfs-pv.yaml
  61. 61 vim nfs-pvc.yaml
  62. 62 vim nfs-pv-pod.yaml
  63. 63 cd lesson13lab/
  64. 64 vim wordpress-deployment.yaml
  65. 65 kubectl get configmaps
  66. 66 kubectl get configmaps wp-db-host-b6fk4hdcgd -o yaml | less
  67. 67 kubectl describe configmaps wp-db-host-b6fk4hdcgd
  68. 68 vim kustomization.yaml
  69. 69 kubectl describe secrets mysql-pass-7tt4f27774
  70. 70 kubectl get secrets mysql-pass-7tt4f27774 -o yaml
  71. 71 echo cGFzc3dvcmQ= | base64 -d
  72. 72 vim wordpress-deployment.yaml
  73. 73 kubectl describe pvc wp-pv-claim
  74. 74 kubectl get pvc
  75. 75 kubectl get deployments
  76. 76 kubectl get pods
  77. 77 kubectl get services
  78. 78 minikube service wordpress --url
  79. 79 curl http://192.168.39.147:31866
  80. 80 cd
  81. 81 curl https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/
  82. 82 history
  83.  
Add Comment
Please, Sign In to add comment