Skip to content

Instantly share code, notes, and snippets.

@obengwilliam
Last active March 8, 2023 11:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obengwilliam/4e16b09b0a3843052dc8e4ae11411f7f to your computer and use it in GitHub Desktop.
Save obengwilliam/4e16b09b0a3843052dc8e4ae11411f7f to your computer and use it in GitHub Desktop.
Useful kubernetes commands
  • Delete all Evicted pods

kubectl get pods --show-all=true | grep 'Evicted' |awk '{print $1}' | xargs kubectl delete pod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment