Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save VerosK/7834bacc9424dfee083ded8375b69099 to your computer and use it in GitHub Desktop.
Save VerosK/7834bacc9424dfee083ded8375b69099 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