This topic describes how to delete a node pool in a Container Service for Kubernetes (ACK) cluster to reduce resource waste.
Table of contents
Rules for releasing nodes in node pools
When you delete a node pool, whether the node pool is configured with the Expected Nodes parameter determines how nodes are released.
Node pool that is configured with the Expected Nodes parameter
All pay-as-you-go nodes in the node pool are released. Subscription nodes are not released. To release subscription nodes, log on to the Elastic Compute Service (ECS) console, switch the billing method of the nodes from pay-as-you-go to subscription, and then release the nodes in the ECS console.
All nodes in the node pool will be removed from the API server of the ACK cluster.
Node pool that is not configured with the Expected Nodes parameter
Nodes that are manually or automatically added to the node pool and subscription nodes are not released. To release subscription nodes, log on to the ECS console, switch the billing method of the nodes from pay-as-you-go to subscription, and then release the nodes in the ECS console.
Only the released nodes are removed from the API server of the ACK cluster.
For more information about how to check whether a node pool is configured with the Expected Nodes parameter, see How do I check whether a node pool is configured with the Expected Nodes parameter?
Procedure
Log on to the ACK console. In the left-side navigation pane, click Clusters.
On the Clusters page, click the name of the cluster that you want to manage and choose in the left-side navigation pane.
Find the node pool that you want to manage and choose More > Delete in the Actions column.
Confirm the information in the message that appears and click OK.
FAQ
How do I check whether a node pool is configured with the Expected Nodes parameter?
Log on to the ACK console. In the left-side navigation pane, click Clusters.
On the Clusters page, click the name of the cluster that you want to manage and choose in the left-side navigation pane.
Click the name of the node pool, click the Overview tab, and check whether the Expected Nodes parameter is configured. If the parameter is not configured, the Expected Number of Nodes field displays -.