You can set node schedulability in the Container Service for Kubernetes (ACK) console to adjust the loads of each node.
Procedure
Log on to the ACK console. In the left-side navigation pane, click Clusters.
On the Clusters page, click the name of the cluster that you want to manage and choose in the left-side navigation pane.
On the Nodes page, find the node that you want to manage and perform the following operations in the Actions column:
Choose
. In the dialog box that appears, turn off the switch and click OK. The status of the node changes to Unschedulable. The existing pods on the node can continue to provide services. However, no new pods are scheduled to the node.Choose
. In the message that appears, click Confirm. The existing pods on the node are evicted, except pods created by DaemonSets. After the node is drained, set the node to the Unschedulable state. This way, no new pods are scheduled to the node.
The status of the node changes to Unschedulable.
What to do next
If you want to resume an unschedulable node, perform the following operations:
Find the node that you want to manage and choose
in the Actions column.In the Schedulability Settings dialog box, turn on the switch and click OK.
The status of the node changes to Schedulable.
References
You can configure node labels and set the nodeSelector to schedule a pod to a node with the specified label. For more information, see Schedule pods to specific nodes.
You can add labels to node pools and schedule application pods to nodes in the node pool that has the specified labels. For more information, see Schedule an application pod to a specific node pool.