# การจัดการคลัสเตอร์ (Cluster Management) ผ่าน Rancher

ผู้ดูแลระบบ (Administrator) สามารถจัดการ Cluster ต่างๆ ที่มีผ่านทาง Rancher ได้ โดยในรูปจะแสดงรายการ Cluster Name Version และ จำนวน Machine ที่มีอยู่ในแต่ละ Cluster

<figure><img src="/files/NXs4mX8EIerpE58TfzN1" alt=""><figcaption></figcaption></figure>

#### ภาพรวมเครื่องเซิร์ฟเวอร์ (Machine Pools)

ภาพนี้แสดงสถานะของเครื่องเซิร์ฟเวอร์ (Virtual Machines) ที่ประกอบกันเป็น Kubernetes Cluster

Machine Pools: แสดงกลุ่มของเครื่องเซิร์ฟเวอร์ที่ถูกจัดแบ่งตามหน้าที่ มี 2 กลุ่มคือ:

* Pool: k8s-app-master: คือกลุ่มของเครื่อง Master Node ซึ่งทำหน้าที่เป็นสมองของระบบ (Control Plane, Etcd) ในที่นี้มี 1 เครื่อง
* Pool: k8s-app-worker: คือกลุ่มของเครื่อง Worker Node ซึ่งทำหน้าที่รันแอปพลิเคชันต่างๆ (Workloads) ในที่นี้มี 1 เครื่อง

สำหรับ resource ของ cluster จะปรับตามขนาดของ worker node ของ cluster นั้นๆ และไม่แนะนำให้ปรับขนาดของ master-node pool และ master-node pool จำเป็นต้องมีขนาดที่เป็นจำนวนคี่เท่านั้น อย่างเช่น 3, 5, 7 และควรมีขนาดอย่างน้อย 3 nodes&#x20;

โดยสามารถปรับ worker-node pool size ได้ทางด้านขวาบนของ node pool นั้นๆ และควรมีขั้นต่ำอย่างน้อย 1 node&#x20;

<figure><img src="/files/dyAchLdYyu6mOQULNR0D" alt=""><figcaption></figcaption></figure>

#### การสำรองข้อมูล (Snapshots)

ที่แท็บ "Snapshots" เพื่อดูประวัติการสำรองข้อมูลของ Cluster

* etcd Snapshot: การ Snapshot ในที่นี้คือการสำรองข้อมูลของ `etcd` ซึ่งเป็นฐานข้อมูลที่เก็บสถานะและการตั้งค่าทั้งหมดของ Kubernetes Cluster (เปรียบเสมือน database ของระบบ)
* Snapshot List: ในตารางแสดงรายการ Snapshot ที่เคยสร้างไว้สำเร็จแล้ว (`Succeeded`) บอกเวลาที่สร้าง (`Age`) และขนาดของไฟล์ (`Size`)
* Snapshot Now: ปุ่มสีน้ำเงิน "Snapshot Now" ช่วยให้ผู้ดูแลระบบสามารถสั่งสร้างไฟล์สำรองข้อมูลชุดใหม่ได้ทันทีที่ต้องการ

<figure><img src="/files/Jv4X2Dj5FI6hByjAze8e" alt=""><figcaption></figcaption></figure>


---

# 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-epc.gitbook.io/ncs-documents/tutorial/kubernetes-on-nipa-cloud-space-with-rancher/kubernetes/cluster-management-rancher.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.
