All Products
Search
Document Center

Container Service for Kubernetes:Set node schedulability

Last Updated:Dec 05, 2023

You can set node schedulability in the Container Service for Kubernetes (ACK) console to adjust the loads of each node.

Procedure

  1. Log on to the ACK console. In the left-side navigation pane, click Clusters.

  2. On the Clusters page, click the name of the cluster that you want to manage and choose Nodes > Nodes in the left-side navigation pane.

  3. On the Nodes page, find the node that you want to manage and perform the following operations in the Actions column:

    • Choose More > Schedulability Settings. 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 More > Drain. 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:

  1. Find the node that you want to manage and choose More > Schedulability Settings in the Actions column.

  2. In the Schedulability Settings dialog box, turn on the switch and click OK.

The status of the node changes to Schedulable.