kubectl get pods

1 개요[ | ]

kubectl get po
kubectl get pod
kubectl get pods

2 예시 1[ | ]

$ kubectl get pods
NAME                                   READY     STATUS    RESTARTS   AGE
kubernetes-bootcamp-5c69669756-v2kr4   0/1       Pending   0          2s
$ kubectl get pods
NAME                                   READY     STATUS    RESTARTS   AGE
kubernetes-bootcamp-5c69669756-v2kr4   1/1       Running   0          15s

3 예시 2[ | ]

$ kubectl get pods
NAME                                   READY     STATUS    RESTARTS   AGE
kubernetes-bootcamp-5dbf48f7d4-6tvt9   1/1       Running   0          4m
kubernetes-bootcamp-5dbf48f7d4-jhcs8   1/1       Running   0          4m
kubernetes-bootcamp-5dbf48f7d4-mgsjj   1/1       Running   0          6m
kubernetes-bootcamp-5dbf48f7d4-v5h6b   1/1       Running   0          4m
$ kubectl get pods -o wide
NAME                                   READY     STATUS    RESTARTS   AGE  IP           NODE
kubernetes-bootcamp-5dbf48f7d4-6tvt9   1/1       Running   0          5m  172.18.0.7   host01
kubernetes-bootcamp-5dbf48f7d4-jhcs8   1/1       Running   0          5m  172.18.0.5   host01
kubernetes-bootcamp-5dbf48f7d4-mgsjj   1/1       Running   0          7m  172.18.0.4   host01
kubernetes-bootcamp-5dbf48f7d4-v5h6b   1/1       Running   0          5m  172.18.0.6   host01

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}