Last active
November 9, 2021 17:36
-
-
Save stefan-cross/a09ce2ce645d4dfae0b83d35d72bcd9c to your computer and use it in GitHub Desktop.
Kubectl House Keeping
This file contains hidden or 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
Remove Nodes in NotReady State | |
kubectl delete node $(kubectl get nodes | grep NotReady | awk '{print $1;}') | |
# kubectl cordon <node-name> | |
# kubectl drain <node-name> --force --ignore-daemonsets --delete-emptydir-data | |
# kubectl delete node <node-name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment