Forked from ipedrazas/gist:9c622404fb41f2343a0db85b3821275d
Created
February 16, 2023 02:42
-
-
Save banchl/bf164e3fc2e0ed4adee2676c3cfd220f to your computer and use it in GitHub Desktop.
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 pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alias xargs='xargs '
kubectl_xxx get pods | grep Evicted | awk '{print $1}' | xargs kubectl_xxx delete pod