Created
September 7, 2019 10:13
-
-
Save abdennour/e440038eb786f3bc54fb5c75ab2826f2 to your computer and use it in GitHub Desktop.
Clean Useless 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 po --all-namespaces --field-selector 'status.phase==Failed' -o json | kubectl delete -f - | |
| kubectl get po --all-namespaces --field-selector 'status.phase==Evicted' -o json | kubectl delete -f - | |
| kubectl get po --all-namespaces --field-selector 'status.phase==Pending' -o json | kubectl delete -f - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment