Help Center> Ubiquitous Cloud Native Service> FAQs> On-Premises Clusters> How Do I Manually Clear Nodes of an On-Premises Cluster?
Updated on 2024-04-11 GMT+08:00

How Do I Manually Clear Nodes of an On-Premises Cluster?

Precautions

Clearing a node is a high-risk operation. After the node is cleared, all processes (including the Kubernetes process and containerd) and data (including containers and images) on the node are cleared, and the node status cannot be restored. Therefore, before performing this operation, ensure that the node is no longer needed by the on-premises cluster.

Scenario

If the execution of the ucs-ctl delete cluster and ucs-ctl delete node commands fails on the on-premises cluster, you need to manually clear the node by referring to this section.

Procedure

  1. Obtain the node clearing script from the installed node.

    Obtain the node clearing script uninstall_node.sh from the /var/paas/.ucs-package/ucs-onpremise/scripts/ directory generated after the decompression.

  2. Copy the script to the node to be cleared.
  3. Log in to the node to be cleared and run the following command:

    bash uninstall_node.sh

    To reduce residual processes or data, the script can be executed multiple times.

  4. After the script is executed, restart the node.
  5. Repeat the preceding operations to clear other nodes.

On-Premises Clusters FAQs

more