Created
April 15, 2020 04:58
-
-
Save vwrs/e7b7a1757c5be1b9362c9a1c2fa28b4f to your computer and use it in GitHub Desktop.
delete all failed pods from k8s
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 | cut -d' ' -f 1 | sed -e '1d' | xargs kubectl delete pod |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment