I couldn't find the status jsonpath when using kubectl. The pod json has a status field but it is an array.
kubectl get pods --column=Status:.status[*]
There are several elements in the array, how can I select the one for real pod status?
kubectl get pods --output="jsonpath={.status}"
, not via --column
kubectl
is returning all Pods that are in the current namespace. To get a singular Pod status, qualify your request with:kubectl get pod $the_pod_name_here --output="jsonpath={.status}"
--output="jsonpath={.items[*].status}"
is likely the syntax you were seeking