-
-
Save undrafted/34a7868971ba29be2e286d3a41a4eedd to your computer and use it in GitHub Desktop.
A simple script to delete all failed pods from Kubernetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment