Skip to content

Instantly share code, notes, and snippets.

@KrustyHack
Created January 21, 2022 15:37
Show Gist options
  • Save KrustyHack/e97cba32b308c92ad72a9e87b4ace522 to your computer and use it in GitHub Desktop.
Save KrustyHack/e97cba32b308c92ad72a9e87b4ace522 to your computer and use it in GitHub Desktop.
Kubernetes delete all failed pods
kubectl get po --all-namespaces --field-selector 'status.phase==Failed' -o json | kubectl delete -f -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment