Chuyển tới nội dung chính

Scale in node chỉ định

Kiểm soát node nào bị scale-down thủ công xóa trước bằng cách đặt node priority.

Node có priority từ 1 (thấp nhất) đến 3 (cao nhất); mọi node mặc định priority 3. Khi scale down (qua MachineDeployment hoặc MachineSet), Machine Controller Manager (MCM) xóa các worker node priority thấp nhất trước. Hạ priority của 1 node xuống 1 để đặt node đó làm mục tiêu ưu tiên cho các lần scale-down sau.

Đặt node priority và scale down​

  1. Annotate node muốn xóa trước:

    kubectl annotate no <node-name> worker.fptcloud.com/nodepriority=1

    Lệnh kubectl annotate đặt node priority

  2. Trên portal, scale down thủ công Worker Group bằng cách điều chỉnh số lượng node min/max.

    Trường min-max node count của Worker Group

    Xác nhận scale-down Worker Group

Hệ thống scale in đúng node đã chỉ định trong vài phút; trạng thái cluster hiển thị Processing và vẫn hoạt động bình thường.

Trạng thái cluster hiển thị Processing khi scale-in

Trạng thái cluster sau khi scale-in hoàn tất

Annotate nhiều node với worker.fptcloud.com/nodepriority=1 để nhắm nhiều node cụ thể cùng lúc.

ghi chú

Tính năng này không áp dụng khi cluster autoscaler scale in worker node.

Xem thêm​