Block and Allow Pod Scheduling
This section describes how to block and allow pods from being scheduled to a node.
Prerequisites
You need to join a cluster and have the Node Management permission in the cluster. For more information, see Cluster Members and Cluster Roles.
Steps
-
Log in to the KubeSphere web console with a user who has Node Management permissions and enter your cluster.
-
In the left navigation pane, select Nodes > Cluster Nodes to open the node list.
-
Click
on the right side of the node you want to operate on, then select Stop Scheduling from the drop-down list. After the operation is complete, the node status will change to Unschedulable.
-
Click
on the right side of a node with the status Unschedulable, then select Enable Scheduling from the drop-down list to allow pods to be scheduled to this node.
| Note |
|---|
After a node’s status is set to Unschedulable, newly created pods will no longer be scheduled to this node. The pods originally running on the node are not affected. |