Updated on 2024-04-25 GMT+08:00

Deleting a Node Pool

Deleting a node pool will delete nodes in the pool. Pods on these nodes will be automatically migrated to available nodes in other node pools.

Constraints

  • A yearly/monthly-billed node pool cannot be deleted before all nodes in it is removed first.
  • Deleting a node will cause PVC/PV data loss for the local PVs associated with the node. These PVCs and PVs cannot be restored or used again. In this scenario, the pod that uses the local PV is evicted from the node. A new pod is created and stays in the pending state. This is because the PVC used by the pod has a node label, due to which the pod cannot be scheduled.

Precautions

  • Deleting a node pool will delete all nodes in the node pool. Back up data in a timely manner to prevent data loss.
  • Deleting a node will lead to pod migration, which may affect services. Perform this operation during off-peak hours. If pods in the node pool have a specific node selector and none of the other nodes in the cluster satisfies the node selector, the pods will become unschedulable.
  • When deleting a node pool, the system sets all nodes in the current node pool to the unschedulable state.

Procedure

  1. Log in to the CCE console.
  2. Click the cluster name to access the cluster console. Choose Nodes in the navigation pane and click the Node Pools tab on the right.
  3. Choose More > Delete in the Operation column of the target node pool.
  4. Read the precautions in the Delete Node Pool dialog box.
  5. In the text box, enter DELETE and click Yes to confirm that you want to continue the deletion.