Reputation: 67
Currently running following command to get status on pods:
kubectl -n kube-system get pods -o wide
Would like to grep or ack out on STATUS column and only show anything thats not running.
Any suggestions?
Upvotes: 0
Views: 1288
Reputation: 844
What about kubectl get pods --field-selector=status.phase!=Running
(maybe depending on the Kubernetes version you are using)
Upvotes: 3