Deleting a Node

Scenario

When a node in a CCE cluster is deleted, services running on the node will also be deleted. Exercise caution when performing this operation.

Notes and Constraints

  • After a CCE cluster is deleted, the ECS nodes in the cluster are also deleted.
  • If ECS nodes are billed on a yearly/monthly basis, they cannot be directly deleted. You can choose Billing Center > My Orders to unsubscribe from the nodes.

    For clusters of v1.17.11 or later, after a VM is unsubscribed from or deleted on the ECS console, the corresponding node in the CCE cluster is automatically deleted.

  • Deleting a node will cause PVC/PV data of the local PV type associated with the node to be lost and cannot be restored. In addition, the PVC/PV cannot be used. When a node is deleted, the pod that uses the local PV is evicted from the node. In addition, a new pod will be created and stays in the pending state. This is because the PVC used by the pod has a node label and cannot be scheduled due to a conflict.

Precautions

  • Deleting a node will lead to pod migration, which may affect services. Perform this operation during off-peak hours.
  • Unexpected risks may occur during the operation. Back up related data in advance.
  • During the operation, the backend will set the node to the unschedulable state.
  • Only worker nodes can be deleted.

Procedure

  1. Log in to the CCE console and access the cluster details page.
  2. In the navigation pane, choose Nodes. In the same row as the node you will delete, choose More > Delete.
  3. In the Delete Node dialog box, click Yes.

    • After the node is deleted, pods on it are automatically migrated to other available nodes.
    • If the disks and EIPs bound to the node are important resources, unbind them first. Otherwise, they will be deleted with the node.
    • ECSs are released during node deletion only if they are billed in pay-per-use mode.
    • If you do not clean up CCE resources as prompted, follow the instructions provided in Cleaning Up CCE Resources on a Deleted Node.