Skip to content

Instantly share code, notes, and snippets.

@thanandorn
Created February 26, 2021 17:12
Show Gist options
  • Save thanandorn/5fb0ba5214ccf823fd93b5c83aea618b to your computer and use it in GitHub Desktop.
Save thanandorn/5fb0ba5214ccf823fd93b5c83aea618b to your computer and use it in GitHub Desktop.
# Delete All Failed/Evicted Pods
kubectl get pod -A --field-selector="status.phase==Failed"
kubectl delete pod -A --field-selector="status.phase==Failed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment