Created
April 27, 2018 10:42
-
-
Save DSchmidtDev/daa1cfd5f5fd62a17e4bdb96bba437cf to your computer and use it in GitHub Desktop.
Kubernetes delete evicted/failed 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 --field-selector=status.phase=Failed -n <namespace> -o name | awk '{print $1}' | xargs kubectl delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment