Created
April 26, 2022 17:33
-
-
Save prskr/f5995c19d9eb5c09992f68693ec7db41 to your computer and use it in GitHub Desktop.
Kubernetes Snippets
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
| for ns in $(k get ns -o name | sed "s#namespace/##g"); do k delete -n "$ns" $(k -n "$ns" get pod --field-selector=status.phase=Failed -o name); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment