
To upgrade Tanzu Kubernetes Grid (TKG), you download and install the new version of the Tanzu CLI on the machine that you use as the bootstrap machine. You must also download and install base image templates and VMs, depending on whether you are upgrading clusters that you previously deployed to vSphere, Amazon EC2, or Azure. In this post, I will take you through the steps to upgrade management and workload cluster deployed on Azure having version 1.4.1 to 1.5.1
Pre checks
let’s do the prechecks before starting with cluster upgrade.
In TMC Console: Administration > Management clusters capv-mgmt
- Check the cluster version as shown here:
In TMC Console: Clusters > click on clustername: capv-workload
- Check the cluster version as shown here:
Upgrade CLI
Upgrade the CLI and required tools to 1.5.1 in JB, this takes few mins to complete
- Create a file on home directory (/home/azureuser) in jumpbox with name as script-session-upgrade.sh
- Once the script is run successfully, proceed further.
Upgrade Management cluster to 1.5.1
- Initiate the management cluster upgrade to 1.5.1, this should take around 30 mins to complete
- In other terminal, check the logs:
Once the management cluster is upgraded: Verify the version in TMC Console
- In TMC Console: Administration > Management clusters capv-mgmt and the cluster version should be v1.22.5 as shown below
- List the clusters
- Info about kubernetes releases
- Upgrades available for a workload cluster
Upgrade Workload cluster to 1.5.1
Trigger workload cluster upgrade to 1.5.1, this should take around 15 mins to complete. After successful completion, version should be v1.22.5+vmware.1
How it looks in Azure portal: Upgrade process deploys a new set of nodes(1.5.1) and deletes the existing nodes(1.4.1).
- List the clusters and now the version should be v1.22.5
- Once the workload cluster is upgraded:
In TMC Console: Clusters > capv-workload