Skip to content
Brian Choi edited this page Mar 20, 2021 · 2 revisions
//노드 IP주소 조회([jq설치](https://stedolan.github.io/jq/download/) 필요)
kubectl get nodes -o json | jq -r '.items[].status.addresses[] | select(.type=="InternalIP") | .address'


//노드 정보 json, yaml형식으로 출력해서 vim 편집기로 보기
kubectl get nodes -o json | vim -c 'set ft=json' -
kubectl get nodes -o yaml | vim -c 'set ft=yaml' -

Clone this wiki locally