Last active
January 9, 2020 10:51
-
-
Save cooltoast/ed10a63eb96a6a450d164e0f0c6bcebe to your computer and use it in GitHub Desktop.
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 -a | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To delete evicted pods from all the namespaces, I use:
This will split the parameters correctly for xargs when using the namespace option..