"Kubectl get pods"의 두 판 사이의 차이

31번째 줄: 31번째 줄:
* [[kubectl describe pods]]
* [[kubectl describe pods]]
* [[kubectl delete pod]]
* [[kubectl delete pod]]
* [[kubectl get nodes]]
* [[kubectl get services]]
* [[kubectl get services]]
* [[kubectl get]]
* [[kubectl get]]

2018년 10월 11일 (목) 13:27 판

1 개요

kubectl get pods
kubectl get pod

2 예시 1

$ kubectl get pods
NAME                                   READY     STATUS    RESTARTS  AGE
kubernetes-bootcamp-5dbf48f7d4-jn22j   1/1       Running   0  6m

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 }}