Skip to content

Instantly share code, notes, and snippets.

@DSchmidtDev
Created April 27, 2018 10:42
Show Gist options
  • Save DSchmidtDev/daa1cfd5f5fd62a17e4bdb96bba437cf to your computer and use it in GitHub Desktop.
Save DSchmidtDev/daa1cfd5f5fd62a17e4bdb96bba437cf to your computer and use it in GitHub Desktop.
Kubernetes delete evicted/failed pods
kubectl get pods --field-selector=status.phase=Failed -n <namespace> -o name | awk '{print $1}' | xargs kubectl delete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment