Score:0

Manually update GKE autopilot version in GCP?

ae flag

I have a GKE autopilot cluster which was initially configured to use STABLE updates channel. It is using version 1.18.20-gke.900 of Kubernetes engine right now.

However, I need a minimum version of 1.19 to use the ingress feature.

I can see that STABLE channel supports the following versions:

  • 1.19.12-gke.2100
  • 1.19.11-gke.2101
  • 1.18.20-gke.900

With 1.18.20-gke.900 being the default.

However, I don't see an option in the console to actually perform an upgrade from currently running 1.18.20-gke.900 to e.g. 1.19.11-gke.2101. Is it possible?

Score:0
ae flag

Looks like you can't do this through the console.

However, you can manually upgrade the control plane of a cluster using the gcloud CLI utility this way:

gcloud container clusters upgrade \
  "${CLUSTER_NAME}" \
  --master \
  --cluster-version "${NEW_VERSION}" \
  [--region "${REGION}"]

Example:

gcloud container clusters upgrade "control" \
  --master \
  --cluster-version "1.19.12-gke.2100" \
  --region europe-west3

Be aware that this will take significant amount of time.

After the control is updated you can also update the nodes to the same version:

gcloud container clusters upgrade \
  "${CLUSTER_NAME}" \
  [--region "${REGION}"]

You can read more in the dedicated article:
Manually upgrading a cluster or node pool

bkanuka avatar
in flag
In general, the `--cluster-version` flag is optional for `gcloud container clusters upgrade`. If left out, it will update to the latest in the channel.
nikicat avatar
ng flag
Node upgrade doesn't work on autopilot clusters with error: `ERROR: (gcloud.container.clusters.upgrade) ResponseError: code=400, message=Autopilot clusters do not support mutating node pools.`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.