반응형
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
반응형
'리눅스' 카테고리의 다른 글
[kubernetes] kubectl config 명령 - 1 (0) | 2022.10.21 |
---|---|
[kubernetes] kubectl config 명령 - 2 (0) | 2022.10.21 |
[kubernetes] kubectl delete 명령 (0) | 2022.10.21 |
우분투에서 rc-local(rc.local) 서비스를 활성화하는 방법 (0) | 2022.10.21 |
Vim에서 YAML 파일을 편집하기 위한 설정(vi/vim 환경 설정) (0) | 2022.10.20 |