본문 바로가기

리눅스

[kubernetes] kubectl get 명령

반응형

kubectl get 명령

kubectl get field selector

kubectl get pods -o wide --field-selector status.phase=Running
$ kubectl get pods -o wide --field-selector status.phase=Running
NAME                                      READY   STATUS    RESTARTS   AGE     IP               NODE         NOMINATED NODE   READINESS GATES
myapp-rs-dynamic-4gchk                    1/1     Running   0          23m     10.233.118.66    kube-node3   <none>           <none>
myapp-rs-dynamic-7wqq4                    1/1     Running   0          23m     10.233.73.68     kube-node1   <none>           <none>
myapp-rs-dynamic-bgmf5                    1/1     Running   0          32m     10.233.100.76    kube-node5   <none>           <none>
myapp-rs-dynamic-ndx7t                    1/1     Running   0          11m     10.233.96.144    kube-node6   <none>           <none>
myapp-rs-dynamic-npjth                    1/1     Running   0          17m     10.233.74.3      kube-node2   <none>           <none>
myapp-rs-dynamic-rdb8q                    1/1     Running   0          4m20s   10.233.113.137   kube-node4   <none>           <none>
nfs-client-provisioner-6866666554-zkbmj   1/1     Running   0          5h50m   10.233.74.2      kube-node2   <none>           <none>

 

참고URL

- kubernetes docs get(kubernetes.io): https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get

- kubectl_get(jamesdefabia.github.io) : https://jamesdefabia.github.io/docs/user-guide/kubectl/kubectl_get/

 

728x90
반응형