Skip to content

Instantly share code, notes, and snippets.

@stibi
Created August 15, 2017 08:32
Show Gist options
  • Save stibi/3297c4ad3f773b63690490a7d6b76ec6 to your computer and use it in GitHub Desktop.
Save stibi/3297c4ad3f773b63690490a7d6b76ec6 to your computer and use it in GitHub Desktop.
List pods not in "Running" state
kubectl get pod -o jsonpath='{.items[?(@.status.phase!="Running")].metadata.name}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment