GKE cluster upgrade

96 Views Asked by At

Need to perform K8s(GKE) version upgrade from 1.27 to 1.28 and 1.28 to 1.29 with application deployed. Determine the best variables for a successful upgrade with minimum service down time.Variables include but not limit to maxSurge and maxUnavailable.Can anybody help me with step by step process on how to do this upgrade activity?

2

There are 2 best solutions below

10
Lherben G On

Google automatically upgrades clusters and nodes. To have more control over the auto-upgrades your cluster and its nodes receive, you can enroll it in a release channel. All Autopilot clusters are automatically enrolled in a release channel.

To discover more about managing your cluster's GKE version, refer to the Upgrades documentation.

Please refer to the provided documentation for detailed instructions on how to manually initiate an upgrade at any time once a new version becomes available.

0
Nani On

I would advise you to initially check which APIs have been deprecated in successive versions 1.28 and 1.27 here, some more info here.

Additionally, if you have any Java-based workloads, there is a change in the cgroup. Upgrading the cluster to 1.28 activates cgroup v2. Please refer to this article. Also you can change your node pool upgrade strategy from Surge upgrades to Blue-green upgrades, here existing nodes are kept available for rolling back while the workloads are validated on the new node configuration.