Deleting or Unsubscribing from a Node
Scenario
You can delete a pay-per-use node or unsubscribe from a yearly/monthly-billed node that is not needed from the node list.
Deleting or unsubscribing from a node in a CCE cluster will release the node and services running on the node. Drain the node and back up data before the deletion or unsubscription to prevent services running on the node from being affected.
Precautions
- Deleting a node will lead to pod migration, which may affect services. Perform this operation during off-peak hours. It is a good practice to drain the node before deletion. For details, see Draining a Node.
- Unexpected risks may occur during the operation. Back up data beforehand.
- It takes about 5 to 10 minutes to unsubscribe from a yearly/monthly node. During this period, the node will be unavailable. After that, the node will be automatically cleared.
Deleting a Pay-per-Use Node
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane, choose Nodes. On the displayed page, click the Nodes tab.
- Locate the target node and choose More > Delete in the Operation column.
- In the Delete Node dialog box, enter DELETE and click Yes.
- After the node is deleted, workload pods on the node 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.
Unsubscribing from a Yearly/Monthly Node
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane, choose Nodes. On the displayed page, click the Nodes tab.
- Locate the target node and choose More > Unsubscribe in the Operation column. In the displayed dialog box, drain the node.
After a node is selected for draining, CCE sets the node to be unschedulable so that no new pods can be scheduled to this node and then safely evicts all the pods meeting node draining requirements from the node. The time required for draining depends on the pods on the node. If it takes an excessively long time, go back to the node list and check events.
- After you confirm the unsubscription, the order page will be displayed. Confirm the unsubscription type and order amount.
- It takes about 5 to 10 minutes to process the unsubscription. During this period, the node will be unavailable.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.