user3360847
user3360847

Reputation: 67

kubectl get status of pods and grep on status tab by anything other than Running

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

Answers (1)

kgorskowski
kgorskowski

Reputation: 844

What about kubectl get pods --field-selector=status.phase!=Running (maybe depending on the Kubernetes version you are using)

Upvotes: 3

Related Questions