# 4. Cách nâng cấp Kubernetes Cluster trên HI GIO Portal

## <mark style="color:green;">**Tổng quan**</mark> <a href="#overview" id="overview"></a>

Đây là tài liệu hướng dẫn cách nâng cấp HI GIO Kubernetes Cluster.

Các bước thực hiện nâng cấp:

* Các phiên bản phần mềm trong hướng dẫn này như sau:
* Nâng cấp Kubernetes Cluster.
* Xác minh Kubernetes Cluster sau khi nâng cấp.

{% hint style="info" %}
Phiên bản phần mềm trong tài liệu này như sau:
{% endhint %}

* Kubernetes Version: 1.23.17+vmware.1
* TKG Product Version: 2.2.0
* Service running on the cluster: Voting web app
* Thành phần chạy dịch vụ::

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/luEMbEf3D3YWrF4cmvVQ/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/tMxPjeV1gjT1bWUKky11/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/dGNQnw2NmeLIAET014Lh/image.png" alt=""><figcaption></figcaption></figure>

## <mark style="color:green;">Quy trình</mark> <a href="#id-2.-guidance" id="id-2.-guidance"></a>

{% tabs %}
{% tab title="I. NÂNG CẤP Kubernetes Clusters:" %}
**Bước 1:** Từ vCD portal, chọn **More → Kubernetes Container Clusters.**

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/6UMs4fO5sJRgpwnyV3BB/image.png" alt=""><figcaption></figcaption></figure>

**Bước 2:** Chọn cluster bạn muốn nâng cấp.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/6dKrFAiGGaK2ysPqt540/image.png" alt=""><figcaption></figcaption></figure>

**Bước 3:** Chọn **UPGRADE.**

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/X2X8uRWKoL0KbNPs4qXe/image.png" alt=""><figcaption></figcaption></figure>

**Bước 4:** Xác minh rằng **phiên bản Kubernetes và TKG Product** hiện tại được sử dụng là chính xác.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/9am08ApIo8XRdG8veQjE/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/r9K60eiVTv2G1eTx1xsh/image.png" alt=""><figcaption></figcaption></figure>

**Bước 5:** Sau đó, chọn **Available upgrade options** → **UPGRADE**.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/Wt28ivE1DvjY44iagtNU/image.png" alt=""><figcaption></figcaption></figure>

**Bước 6:** Chờ đến khi cluster thực hiện nâng cấp hoàn tất.
{% endtab %}

{% tab title="II. Xác minh Kubernetes Cluster sau khi nâng cấp." %}
**Bước 1:** Sau khi hoàn tất, phiên bản cluster sẽ thay đổi thành phiên bản bạn đã chọn ở bước trên.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/pgf6xzdHqH9nRFrDPSeQ/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/dknZugI6GjzPYJlwXDoe/image.png" alt=""><figcaption></figcaption></figure>

**Bước 2:** Kiểm tra các thành phần sau khi thực hiện nâng cấp và đảm bảo mọi thứ hoạt động bình thường

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/Hk0N0fJwQ4nOwjQVYFvK/image.png" alt=""><figcaption></figcaption></figure>

**Bước 3:** Kiểm tra dịch vụ sau khi nâng cấp và đảm bảo rằng nó vẫn hoạt động bình thường.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/Kt8970cxDivBMJRivaIS/image.png" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/rLVAoyFtHnHbRxipooW4/image.png" alt=""><figcaption></figcaption></figure>

Nâng cấp đã hoàn tất.
{% endtab %}
{% endtabs %}
