Created
March 16, 2021 08:53
-
-
Save iamcryptoki/dbb209cefd731fa71f3f06fcc29f2070 to your computer and use it in GitHub Desktop.
Kubernetes: Delete evicted pods.
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 pod -n <NAMESPACE> | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n <NAMESPACE> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment