Skip to content

Instantly share code, notes, and snippets.

@matteo-grella
Created December 4, 2019 23:42
Show Gist options
  • Save matteo-grella/b89bf3cfcf419b12f8175a1e64741103 to your computer and use it in GitHub Desktop.
Save matteo-grella/b89bf3cfcf419b12f8175a1e64741103 to your computer and use it in GitHub Desktop.
Delete evicted 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