Skip to content

Instantly share code, notes, and snippets.

@fatred
Last active February 3, 2020 12:09
Show Gist options
  • Save fatred/24be69cd3ded2251ce48bd3152650ce5 to your computer and use it in GitHub Desktop.
Save fatred/24be69cd3ded2251ce48bd3152650ce5 to your computer and use it in GitHub Desktop.
aliases that are handy for k8s operations
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