Cordon and drain GKE pool
What
In GKE, if you want to upgrade a node pool, or take one down for maintanance, this is the easiest thing to follow
How
Locate the pool name
In GKE console, navigate to the Cluster then click NODES
and make note of the pool name
Cordon Node
Drain node
kubectl drain -l cloud.google.com/gke-nodepool=<pool name> --delete-emptydir-data --ignore-daemonsets --force
Delete old nodes
Want to make this site better? Open a PR or help fund hosting costs