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

 
(사용자 2명의 중간 판 18개는 보이지 않습니다)
1번째 줄: 1번째 줄:
{{소문자}}
==개요==
==개요==
;kubectl get po
;kubectl get pod
;kubectl get pods
;kubectl get pods
<source lang='console'>
 
==예시 1==
<syntaxhighlight lang='console'>
$ kubectl get pods
NAME                                  READY    STATUS    RESTARTS  AGE
kubernetes-bootcamp-5c69669756-v2kr4  0/1      Pending  0          2s
</syntaxhighlight>
<syntaxhighlight lang='console'>
$ kubectl get pods
NAME                                  READY    STATUS    RESTARTS  AGE
kubernetes-bootcamp-5c69669756-v2kr4  1/1      Running  0          15s
</syntaxhighlight>
 
==예시 2==
<syntaxhighlight lang='console'>
$ kubectl get pods
$ kubectl get pods
NAME                                  READY    STATUS    RESTARTS  AGE
NAME                                  READY    STATUS    RESTARTS   AGE
kubernetes-bootcamp-5dbf48f7d4-jn22j   1/1      Running  0  6m
kubernetes-bootcamp-5dbf48f7d4-6tvt9  1/1      Running  0          4m
</source>
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
</syntaxhighlight>
<syntaxhighlight lang='console'>
$ 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
</syntaxhighlight>


==같이 보기==
==같이 보기==
* [[kubectl describe pods]]
{{z컬럼3|
* [[쿠버네티스 Pod]]
* [[쿠버네티스 pod STATUS]]
* [[kubectl get pods -A]]
* [[kubectl get pods -o wide]]
* [[kubectl get pods -o jsonpath]]
* [[kubectl get pods --sort-by=.metadata.creationTimestamp]]
* [[kubectl describe pod]]
* [[kubectl delete pod]]
* [[kubectl get node]]
* [[kubectl get service]]
* [[kubectl get]]
* [[kubectl proxy]]
* [[kubectl proxy]]
* [[kubectl 명령어]]
* [[kubectl 명령어]]
}}


[[분류: kubectl]]
[[분류: kubectl]]
[[분류: k8s Pod]]

2023년 9월 22일 (금) 22:08 기준 최신판

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