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
-
Annotate node muốn xóa trước:
kubectl annotate no <node-name> worker.fptcloud.com/nodepriority=1 -
Trên portal, scale down thủ công Worker Group bằng cách điều chỉnh số lượng node min/max.


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.


Annotate nhiều node với worker.fptcloud.com/nodepriority=1 để nhắm nhiều node cụ thể cùng lúc.
Tính năng này không áp dụng khi cluster autoscaler scale in worker node.