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
-
Log in to the KubeSphere web console with a user who has the Node Management permission, and access your cluster.
-
In the left navigation pane, select Nodes > Cluster Nodes to open the node list.
-
Click on the right side of a node, and select Cordon from the dropdown list. The node status will change to Unschedulable.
-
On the right side of the node with the status Unschedulable, Click , 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. |
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.