kubectl 썸네일형 리스트형 [K8S] Kubectl - jsonpath Json Path '$' 은 expression이 default로 root object로부터 시작하기 때문에 선택사항이다.결과값은 String() function으로 반환된다. JSONPath expressions 안에서 text를 인용하려면 " " 를 사용한다. Node list 추출 controlplane ~ ➜ kubectl get nodes -o=jsonpath='{.items[*].metadata.name}'controlplane node01$ kubectl get nodes -o=jsonpath='{.items[*].metadata.name}{"\n"}{.items[*].status.capacity.cpu}'controlplane node0116 16os version 추출 (osImage).. 더보기 [K8S] kubectl command kubectl [command] [자원type] [NAME] [flags] ex. kubectl get pod webserver -o wide kubectl run kubectl create -f obj.yaml kubectl apply -f obj.yaml kubectl get kubectl edit kubectl describe 클러스터에서 사용할 수 있는 자원 확인 # Node 정보 확인하기 READY: 파드의 준비상태 0/1: 파드는 생성되었으나 사용할 준비가 되지 않았다. 1/1: 파드가 생성되었고 사용할 준비가 끝났다. root@master:~# kubectl get nodes NAME STATUS ROLES AGE VERSION master.example.com Ready control-pl.. 더보기 이전 1 다음