Last active
February 3, 2020 12:09
-
-
Save fatred/24be69cd3ded2251ce48bd3152650ce5 to your computer and use it in GitHub Desktop.
aliases that are handy for k8s operations
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
alias killu-evicted="kubectl get pods -A -ojson | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains(\"Evicted\")) | \"kubectl delete pods \(.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