Cordon or drain a node

Last updated:2021-05-25 17:26:04

Cordon a node

After you cordon a node, new pods cannot be scheduled to this node. The existing pods on this node are not affected.

  1. Log in to the KCE console.
  2. In the left navigation pane, click Cluster.
  3. Click the name of a cluster to go to the cluster management page.
  4. In the left navigation pane, choose Manage Nodes > Node. The Node page appears.
  5. Find the node that you want to cordon and choose More > Cordon in the Operation column.
  6. In the dialog box that appears, click OK to cordon the node.

Uncordon a node

After you uncordon a node, new pods can be scheduled to this node.

  1. Log in to the KCE console.
  2. In the left navigation pane, click Cluster.
  3. Click the name of a cluster to go to the cluster management page.
  4. In the left navigation pane, choose Manage Nodes > Node. The Node page appears.
  5. Find the node that you want to uncordon and choose More > Uncordon in the Operation column.
  6. In the dialog box that appears, click OK to uncordon the node.

Drain a node

After you drain a node, all pods on the node, excluding pods managed by DaemonSets, are evicted to other nodes in the cluster and the node is cordoned.

  1. Log in to the KCE console.
  2. In the left navigation pane, click Cluster.
  3. Click the name of a cluster to go to the cluster management page.
  4. In the left navigation pane, choose Manage Nodes > Node. The Node page appears.
  5. Find the node that you want to drain and choose More > Drain in the Operation column.
  6. In the dialog box that appears, click OK to drain the node.

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈