Forked from ipedrazas/gist:9c622404fb41f2343a0db85b3821275d
Created
June 19, 2020 07:53
-
-
Save transhapHigsn/a9b76fd0070fa79e91e74d453eff9d3d to your computer and use it in GitHub Desktop.
Delete evicted pods
This file contains 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kubectl get pods -n namespace | grep Evicted | awk '{print $1}' | xargs kubectl delete pod -n namespace