Guest User

Untitled

a guest
Dec 19th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. 1 kubectl get namespaces
  2. 2 kubectl -n weave get pods
  3. 3 kubectl create namespace dev
  4. 5 watch kubectl get all -n dev
  5. 8 kubectl -n weave get pods
  6. 12 curl podinfo.dev:9898/version
  7. 13 cd ../cluster/un-workshop/dev
  8. 14 cd cluster/un-workshop/dev
  9. 15 git commit -m "my first deploy" .
  10. 16 git push
  11. 17 curl podinfo.dev:9898/version
  12. 30 watch kubectl get pods -n dev
  13. 36 curl podinfo.dev:9898/version
  14. 37 git config --global color.diff never
  15. 38 git show
  16. 41 kubectl get pods
  17. 42 kubectl get pods --all-namespaces
  18. 48 cd /workspace/
  19. 49 kubectl create namespace test
  20. 50 kubectl get namespaces
  21. 51 kubectl run podinfo --image=quay.io/stefanprodan/podinfo:0.3.0 --port=9898 --namespace=test
  22. 52 kubectl -n test get deployments
  23. 53 kubectl -n test get pods
  24. 54 kubectl logs podinfo-78dc8f45df-hhrbp
  25. 55 kubectl -n test logs podinfo-78dc8f45df-hhrbp
  26. 56 kubectl -n test expose deployment podinfo
  27. 57 kubectl -n test get svc
  28. 58 kubectl get
  29. 59 kubectl -n test get po -o wide
  30. 60 kubectl -n test get svc
  31. 61 curl podinfo.test:9898
  32. 62 kubectl -n test get po -o wide
  33. 63 kubectl -n test get svc
  34. 64 kubectl -n test get endpoints
  35. 65 curl podinfox.test:9898
  36. 66 curl -v podinfo.test:9898
  37. 67 kubectl -n test scale deployment podinfo --replicas=2
  38. 68 kubectl -n test get endpoints
  39. 69 kubectl -n test get pods -o wide
  40. 70 watch curl -s podinfo.test:9898 | grep HOSTNAME
  41. 71 kubectl -n test get svc -o wide
  42. 72 kubectl -n test get pods --selector=run=podinfo
  43. 73 kubectl -n test exec -ti podinfo-78dc8f45df-hhrbp -- /bin/sh
  44. 74 kubectl -n test describe svc podinfo
  45. 75 kubectl -n test describe deploy podinfo
  46. 76 kubectl get svc --all-namespaces
  47. 77 kubectl --all-namespaces get svc
  48. 78 kubectl get namespace test -o yaml
  49. 79 kubectl get namespace svc -o yaml
  50. 80 kubectl get svc podinfo -o yaml
  51. 81 kubectl get svc podinfo -o yaml -n test
  52. 82 kubectl describe svc podinfo -n test
  53. 83 kubectl describe svc test.podinfo
  54. 84 kubectl describe svc v1/test.podinfo
  55. 85 kubectl describe svc v1.service/test.podinfo
  56. 86 kubectl -n test get all
  57. 87 kubectl delete namespace test
  58. 93 kubectl create namespace dev
  59. 94 watch kubectl -n dev get all
  60. 95 kubectl -n dev get all
  61. 96 cd /workspace/podinfo
  62. 97 git commit -m "release v1.4.2" .
  63. 98 git push
  64. 101 watch gcloud container images list-tags gcr.io/dx-training/training-user-1-podinfo
  65. 102 cd ../cluster/un-workshop/dev
  66. 103 git commit -m "my first deploy" .
  67. 104 git push
  68. 105 curl podinfo.dev:9898/version
  69. 106 watch curl podinfo.dev:9898/version
Add Comment
Please, Sign In to add comment