How do I disable auto upgrades for gke masters (not just node pools)

Viewed 1574

A little confused about this. Reading google docs say auto upgrade is enabled for masters and node pools. But I can only find how to disable auto upgrade on node pools.

How do I disable auto upgrade on masters too?

4 Answers

Google documentation states:

Note: Cluster control planes are always upgraded on a regular basis, regardless of whether your cluster is enrolled in a release channel or not.

So you can disable or enable auto-update for node pools but masters (control plane) has auto-updates always enabled.

Another quote from here:

Regardless of whether your cluster is enrolled in a release channel or not, cluster control planes are always upgraded on a regular basis.

The GKE team performs automatic upgrades of your cluster control plane on your behalf and this is managed by Google in order to ensure security patches and functionality. As per document you can manually initiate a control plane upgrade to a version newer than the default.

Also, you can disable node auto-upgrade for an existing node pool. Keep in mind if you do so, you have to make sure that the cluster's nodes run a version compatible the cluster's version.

gcloud container node-pools update node-pool-name --cluster cluster-name \
--zone compute-zone --no-enable-autoupgrade

Also, this article explains further how automatic and manual upgrades work on Google Kubernetes Engine (GKE) clusters.

Related