Created
May 7, 2018 12:34
-
-
Save knil-sama/1b7ba3b6848f73f90d146de1e20bd01d to your computer and use it in GitHub Desktop.
clean unknown pods on kubernetes
This file contains 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
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