Prevent and Allow Pod Scheduling

This section explains how to prevent pods from being scheduled to nodes.

Prerequisites

You should join a cluster and have the Node Management permission within the cluster. For more information, refer to “Cluster Members” and “Cluster Roles”.

Steps

  1. Log in to the KubeSphere web console with a user who has the Node Management permission, and access your cluster.

  2. In the left navigation pane, select Nodes > Cluster Nodes to open the node list.

  3. Click More on the right side of a node, and select Cordon from the dropdown list. The node status will change to Unschedulable.

  4. On the right side of the node with the status Unschedulable, Click More, and then select Uncordon from the dropdown list to allow pods to be scheduled to this node.

Note

When the node status is changed to Unschedulable, newly created pods will no longer be scheduled to this node, and existing pods running on the node will not be affected.