Skip to content

Cordon and drain GKE pool


In GKE, if you want to upgrade a node pool, or take one down for maintanance, this is the easiest thing to follow


Locate the pool name

In GKE console, navigate to the Cluster then click NODES and make note of the pool name


Cordon Node

kubectl cordon -l<pool name>

Drain node

kubectl drain -l<pool name> --delete-emptydir-data --ignore-daemonsets --force

Delete old nodes

kubecl delete node -l<pool name>

Want to make this site better? Open a PR or help fund hosting costs