# 4. How to upgrade Kubernetes Cluster in HI GIO Portal

## <mark style="color:green;">**Overview**</mark> <a href="#overview" id="overview"></a>

This is a document for how to upgrade HI GIO Kubernetes Cluster.

Step for performing the upgrade:

* The versions of software in this guide are as follows:
* Upgrade Kubernetes Cluster.
* Validate Kubernetes Cluster after the upgrade.

{% hint style="info" %}
The versions of the software are as follows

* Kubernetes Version: 1.23.17+vmware.1
* TKG Product Version: 2.2.0
* Service running on the cluster: Voting web app
* Component running the service:
  {% endhint %}

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2F4Fsl7xy6XzgekQ0qsHTe%2Fimage.png?alt=media&#x26;token=a7c938ff-86a8-4868-8065-7665d2228fb5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2F9c8uicg63yzMhph3HWPG%2Fimage.png?alt=media&#x26;token=0ca121ae-40aa-417f-bf4c-f65e97c0d2d0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fkk7l7oHCnufObaYCZpGM%2Fimage.png?alt=media&#x26;token=c786f751-e669-49e2-913e-44287863cbed" alt=""><figcaption></figcaption></figure>

## <mark style="color:green;">**Procedure**</mark> <a href="#procedure" id="procedure"></a>

{% tabs %}
{% tab title="I. UPGRADE Kubernetes Clusters:" %}
**Step 1:** From the vCD portal, choose **More** → Kubernetes Container Clusters

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FUWBE9mrajVEEfRPby1OS%2Fimage.png?alt=media&#x26;token=0eefac86-d4c7-4edb-9dfb-6e5323ede5c8" alt=""><figcaption></figcaption></figure>

**Step 2:** Choose the cluster you want to upgrade to.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FFr62S6Qx4POUsaEXwzEp%2Fimage.png?alt=media&#x26;token=8c48966d-e7cb-4a92-9ea1-696eacf35169" alt=""><figcaption></figcaption></figure>

**Step 3:** Choose **UPGRADE.**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FO0IMCDGCLi2We8T05rck%2Fimage.png?alt=media&#x26;token=ddb43468-dc38-4c7e-8f64-27abf6b63af0" alt=""><figcaption></figcaption></figure>

**Step 4:** Verify the **current usage of Kubernetes and TKG Product versions are correct.**

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2F8rcvXknMBsy4Wyw4Ejot%2Fimage.png?alt=media&#x26;token=bd697487-7c19-4efc-9c34-a5e08547021d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fvt9Y1hDSrQK2jBxQBKc7%2Fimage.png?alt=media&#x26;token=2df2640c-6fc5-4195-8e32-ce8cef880923" alt=""><figcaption></figcaption></figure>

**Step 5:** Then choose the **Available upgrade options** → **UPGRADE**.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FmZxF6FMBi02XXnhOkL3v%2Fimage.png?alt=media&#x26;token=5e9c56e6-c286-4136-8f74-348305dd0205" alt=""><figcaption></figcaption></figure>

**Step 6:** Wait for the cluster to perform the upgrade completed.
{% endtab %}

{% tab title="II. Validate Kubernetes Cluster after the upgrade." %}
**Step 1:** After completion, the cluster version will change to the version you choose above.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FA9OD3ze0FNIzV4xUmm9j%2Fimage.png?alt=media&#x26;token=fcb58285-eeb9-402c-b2d9-406589997e4e" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2Fbptr0rEdyeqCO4Nqci6L%2Fimage.png?alt=media&#x26;token=ccc1f9ab-6f57-4e1a-9e7c-c1b90bfec664" alt=""><figcaption></figcaption></figure>

**Step 2:** Test the component after performing the upgrade, and ensure that everything is running normally.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FkCfXoKwMN4A4qRtyU8pt%2Fimage.png?alt=media&#x26;token=33711e70-895a-4d1b-8417-32b988074e31" alt=""><figcaption></figcaption></figure>

**Step 3:** Testing service after the upgrade, and it is still running normally.

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FDsA0ufrqOROufPY3KzZN%2Fimage.png?alt=media&#x26;token=e8b2ba4c-3b68-46df-bfbb-cda7620db0a6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3953927389-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fbvay7AR0CH8vZKgD3dSy%2Fuploads%2FaQLIkTp7oq8FhwFqkJ2T%2Fimage.png?alt=media&#x26;token=6cd3e069-ab3e-4ea5-9fad-7712badcf58b" alt=""><figcaption></figcaption></figure>

The upgrade is completed.
{% endtab %}
{% endtabs %}
