Guest User

Untitled

a guest
Oct 22nd, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: nginx
  5. spec:
  6. containers:
  7. - name: nginx
  8. image: nginx
  9. ports:
  10. - containerPort: 80
  11.  
  12. up@up01:~$ kubectl get pods --all-namespaces
  13. NAMESPACE NAME READY STATUS RESTARTS AGE
  14. default busybox 0/1 ContainerCreating 0 11m
  15. default nginx 0/1 ContainerCreating 0 22m
  16. kube-system dummy-2088944543-n1cd5 1/1 Running 0 5d
  17. kube-system etcd-up01 1/1 Running 0 5d
  18. kube-system kube-apiserver-up01 1/1 Running 0 5d
  19. kube-system kube-controller-manager-up01 1/1 Running 0 5d
  20. kube-system kube-discovery-1769846148-xfpls 1/1 Running 0 5d
  21. kube-system kube-dns-2924299975-5rzz8 4/4 Running 0 5d
  22. kube-system kube-proxy-17bpl 1/1 Running 2 3d
  23. kube-system kube-proxy-3pk63 1/1 Running 0 3d
  24. kube-system kube-proxy-h3wrj 1/1 Running 0 5d
  25. kube-system kube-proxy-wzqv4 1/1 Running 0 3d
  26. kube-system kube-proxy-z3xxx 1/1 Running 0 3d
  27. kube-system kube-scheduler-up01 1/1 Running 0 5d
  28. kube-system kubernetes-dashboard-3203831700-3xfbd 1/1 Running 0 5d
  29. kube-system weave-net-6c0nr 2/2 Running 0 3d
  30. kube-system weave-net-dchhf 2/2 Running 0 5d
  31. kube-system weave-net-hshvg 2/2 Running 4 3d
  32. kube-system weave-net-n684c 2/2 Running 1 3d
  33. kube-system weave-net-r5319 2/2 Running 0 3d
  34.  
  35. kubectl create --namespace kube-system -f nginx.yaml
  36.  
  37. kubectl describe pods <pod>
Add Comment
Please, Sign In to add comment