Google Cloud: Upgrading Google Kubernetes Engine Clusters

In this lab, you will upgrade a GKE cluster using the Google Cloud Console.

Task 1. Deploy a GKE cluster

In this task, you use Google Cloud Console to deploy a GKE cluster running a Kubernetes version that is not the most recent release. You will upgrade this cluster to a more recent release in a later task.

  1. In the Google Cloud Console, on the Navigation menu > click Kubernetes Engine > Clusters.

4. Select the lowest version number in the list. This might already be selected as the default.

5. Leave all of the other settings at the defaults and click Create to begin creating a GKE cluster.

When provisioning is complete, the Kubernetes Engine > Clusters page looks like the screenshot:

Task 2: Upgrade your GKE cluster

In this task, you upgrade your GKE cluster and all of the nodes.

Upgrade your GKE cluster

  1. In the Google Cloud Console, on the Navigation menu in the Kubernetes Engine section, click Clusters.

4. Select the most recent (highest) build available and then click Change.

5. You will see something like below:

Note:

Version numbers are presented in the following format major.minor.patch.For Example in the version 1.14.10, 1.14.10 is the major version, 1.14.10 is the minor version, and 1.14.10 is the patch version.

If the version you are upgrading to is more than 1 minor version away from the current version. You may have to do this step in stages.

For Example: I will upgrade from 1.14.10 to 1.15.11 first, then I will upgrade from 1.15.11 to my most recent version (1.16.9).

You can refresh the page to check the status of the upgrade.

When the master upgrade has completed, the master version number changes to the version that you selected in the upgrade wizard.

6. Once done, you will see the upgraded version like below:

Upgrade the node pool in your cluster

You must now upgrade the nodes of your cluster to the same version as the master.

  1. Refresh your web browser to display the prompt, and then click Upgrade oldest node pool.

2. In the upgrade wizard window, choose the most recent version (at the top of the list), and then click Change to continue with the upgrade.

Because this process must upgrade all nodes in your cluster, it might take several minutes to complete.

4. You can check the status by refreshing the web browser. A progress bar appears.

5. When the node pool upgrade process finishes, your cluster upgrade is complete.

When all of the nodes have been upgraded the new version is reflected in the node pool details pane.

This concludes our lab demonstration for Upgrading Google Kubernetes Engine Clusters

Happy Learning !!!

Artificial Intelligence | Machine Learning | DevOps enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store