Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Gke cluster version EOL unnable to upgrade

Hello,
I'm having an issue with a cluster running version 1.25 and i want to upgrade it to 1.30 or latest on stable channel, but seems like i can't because of the 2 restrictions in place: Extended support seems to have the oldest version at 1.27 and all the others at 1.28 and the other is that i can't upgrade two or more minor versions at the time. Is there anything that i'm missing, is there a way to upgrade it or i just have to recreate the cluster?

Thank you

Solved Solved
0 7 606
1 ACCEPTED SOLUTION

Hi, @andreicojo5.

Yes, you can't perform a long jump when upgrading to the Kubernetes cluster. However, I'm confused because if support for the current version has ended, the system would typically require you to upgrade. At this point, I recommend contacting GCP support under the plan you've purchased for your project.

Regards,
Mokit

View solution in original post

7 REPLIES 7

Hi, @andreicojo5.

Yes, you can't perform a long jump when upgrading to the Kubernetes cluster. However, I'm confused because if support for the current version has ended, the system would typically require you to upgrade. At this point, I recommend contacting GCP support under the plan you've purchased for your project.

Regards,
Mokit

Thank you @mokit for taking your time to answer, you might be right with the GCP support, only issue is that we work with google via a third party and we have only the third party support included not actual GCP support... I will try to contact them and see where we end up

@andreicojo5  - You should still be able to upgrade even though you can't see the versions.  But you will need to update the control plane 1 version at a time.

Since you are on 1.25, you'll need to keep running the upgrade command multiple times to get to a supported version for the control plane and node pools.
Note that if you have multiple node pools in the cluster, you'd need to update the minor version for all node pools before moving on to the next minor version.

gcloud container clusters upgrade CLUSTER_NAME \
  --node-pool=NODE_POOL_NAME \
  --cluster-version 1.26

gcloud container clusters upgrade CLUSTER_NAME \
  --node-pool=NODE_POOL_NAME \
  --cluster-version 1.27

gcloud container clusters upgrade CLUSTER_NAME \
  --node-pool=NODE_POOL_NAME \
  --cluster-version 1.28

gcloud container clusters upgrade CLUSTER_NAME \
  --node-pool=NODE_POOL_NAME \
  --cluster-version 1.29

gcloud container clusters upgrade CLUSTER_NAME \
  --node-pool=NODE_POOL_NAME \
  --cluster-version 1.30

 

@garisingh Thank you for taking your time to answer but I can't upgrade the nodepool before upgrading the control plane, i get this error if i try: ERROR: (gcloud.container.clusters.upgrade) ResponseError: code=400, message=Node version "1.26.1-gke.1500" must not have a greater minor version than master version "1.25.16-gke.1537000".
And if i try upgrading the master i get this:
ERROR: (gcloud.container.clusters.upgrade) ResponseError: code=400, message=Master version "1.26.1-gke.1500" is unsupported.

Can you post the gcloud commands you tried?

This is what i ran for the master:

 

 

gcloud container clusters upgrade CLUSTER_NAME \
   --region REGION --master \
   --cluster-version 1.26.1-gke.1500

 

 

And for the nodepool:

 

gcloud container clusters upgrade CLUSTER_NAME --region REGION \                                                                              
  --node-pool=NODEPOOL_NAME \       
  --cluster-version 1.26.1-gke.1500

Also i ran the upgrade for the nodepool before the one for master

 

Ah ... don't use a specific patch version.  Just use the minor version (e.g. 1.26)

gcloud container clusters upgrade CLUSTER_NAME \
   --region REGION --master \
   --cluster-version 1.26

 

Top Labels in this Space
Top Solution Authors