website/content/en/docs/installing-on-linux/cluster-operation/remove-nodes.md
Sherlock113 afdab27997 Update cluster operation and uninstalling wording
Signed-off-by: Sherlock113 <sherlockxu@yunify.com>
2020-09-08 16:28:11 +08:00

1.2 KiB

title keywords description weight
Remove Nodes Kubernetes, KubeSphere, scale, remove-nodes How to remove nodes from an existing cluster. 2345

Cordon a Node

Marking a node as unschedulable prevents the scheduler from placing new pods onto that node while not affecting existing Pods on the node. This is useful as a preparatory step before a node reboot or other maintenance.

To mark a node unschedulable, you can choose Cluster Nodes under Nodes from the left menu, find a node you want to remove from the cluster, and click the Cordon button. Alternatively, you can run the command kubectl cordon $NODENAME directly. See Kubernetes Nodes for more details.

Cordon a Node

{{< notice note >}} Pods that are part of a DaemonSet tolerate being run on an unschedulable node. DaemonSets typically provide node-local services that should run on the node even if it is being drained of workload applications. {{</ notice >}}

Delete a Node

You can delete the node by the following command:

./kk delete node <nodeName> -f config-sample.yaml