Description
Set management.auto_upgrade = true for routine upgrades on each node pool. The Google provider enables it by default. Even when it is off, GKE still updates the control plane and can upgrade unsupported nodes.
Potential impact
Delaying manual patches can leave nodes exposed to known issues or running a version incompatible with the control plane.
Remediation
Check the setting and running version on each pool. Schedule a maintenance window and test whether workloads stay available during node replacement. For a manually managed pool, assign an owner and schedule patches before support ends.
Examples
The examples change only auto_upgrade on the same node pool. Define the referenced google_container_cluster.primary and your environment’s remaining settings.
Before
resource "google_container_node_pool" "node_pool" {
name = "my-node-pool"
location = "us-central1-a"
cluster = google_container_cluster.primary.name
node_count = 3
management {
auto_upgrade = false
}
timeouts {
create = "30m"
update = "20m"
}
}
After
resource "google_container_node_pool" "node_pool" {
name = "my-node-pool"
location = "us-central1-a"
cluster = google_container_cluster.primary.name
node_count = 3
management {
auto_upgrade = true
}
timeouts {
create = "30m"
update = "20m"
}
}