May your list be empty

Handy command for k8s pod status:

kubectl get pods –all-namespaces –field-selector=status.phase!=Running -o wide

May your list be empty.

(Decoding: find me all pods in all namespaces in my kubernetes cluster that are not running.  Note not running can mean: Completed.  Completed can be good.  Others are usually not.)

Leave a Reply

Your email address will not be published. Required fields are marked *