Skip to content

Instantly share code, notes, and snippets.

@knil-sama
Created May 7, 2018 12:34
Show Gist options
  • Save knil-sama/1b7ba3b6848f73f90d146de1e20bd01d to your computer and use it in GitHub Desktop.
Save knil-sama/1b7ba3b6848f73f90d146de1e20bd01d to your computer and use it in GitHub Desktop.
clean unknown pods on kubernetes
kubectl get pods | awk '$3 == "Unknown" { print $1 }' | xargs kubectl delete pods --grace-period=0 --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment