Last active
November 14, 2018 22:37
-
-
Save ramene/9420547988346dd120abe03a51c58030 to your computer and use it in GitHub Desktop.
Evicted
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 -a --all-namespaces -o json | \ | |
| jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | | |
| "kubectl delete po \(.metadata.name) -n \(.metadata.namespace)"' | xargs -n 1 bash -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment