Get resource with custom columns kubectl

Print only the fields you care about without jq

kubectl get pods -n <ns> -o custom-columns='NAME:.metadata.name,NODE:.spec.nodeName,STATUS:.status.phase'
more kubectl all 73 commands →