# 2. Cách thay đổi kích thước Kubernetes Cluster trên HI GIO Portal

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

Tài liệu này được sử dụng khi bạn muốn thay đổi kích thước các node của cluster trên HI GIO Cloud (giảm hoặc tăng số lượng node).

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

**I. Yêu cầu**

* Bạn đã có một Kubernetes cluster trên HI GIO Cloud.
* Tài nguyên khả dụng nếu bạn tăng số lượng node.
* Bạn có quyền quản lý Kubernetes cluster.

**II. Các bước thực hiện**

{% stepper %}
{% step %}
**Bước 1:** Đăng nhập vào HI GIO Cloud bằng tài khoản IAM --> Mở vCD Portal --> **More** --> **Kubernetes Container Clusters**

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/mnk2m7uPBUzu9XTG8FNQ/image.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 2:** Chọn **Node Pool** của cluster của bạn.

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

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

* Hệ thống sẽ hiển thị thông tin về loại node, số lượng node, và chính sách kích thước (sizing policy)...

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/uVMsHuvv1IW2HHA9Mftj/image.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 3:** Chọn biểu tượng <img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/QVS2YI71YhmhqSsqmOtt/image.png" alt="" data-size="line"> ở bên cạnh node bạn muốn thay đổi kích thước --> **Resize**

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/m0GDizghXrDawmejX6uY/image.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 4:** Nhập số lượng node bạn muốn thay đổi và nhấn **SUBMIT**

*Hãy cẩn thận khi thay đổi kích thước của các node pool xuống 0 worker node. Cluster luôn cần có ít nhất 1 worker node đang chạy, nếu không cluster sẽ rơi vào trạng thái lỗi không thể phục hồi.*

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/BU11kky1iATOn9ktV6h0/image.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 5:** Chờ đợi quá trình thay đổi kích thước node hoàn tất.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/5RCt5AsMOOEl1yna0C4e/image.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 6:** Trong tab **Monitor**, hệ thống sẽ hiển thị nhiều task được cập nhật trên cluster của bạn.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/UGL2wbwvZFPa46tXujsE/image.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 7:** Khi hoàn tất, số lượng node sẽ hiển thị số lượng node hiện tại/số lượng node mong muốn của bạn.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/4g0NthJg36zJhJ33blFj/image.png" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Bước 8:** Bạn có thể xác minh bằng lệnh bên trong cluster của mình.

<figure><img src="https://content.gitbook.com/content/dOZ82gj0wvhbAUlxBHpj/blobs/IMDaOlnyjEOPdhfez3kC/image.png" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.higiocloud.vn/hi-gio-user-guide-vn/hi-gio-kubernetes/2.-cach-thay-doi-kich-thuoc-kubernetes-cluster-tren-hi-gio-portal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
