- Documentation
Volcengine Kubernetes Engine
Volcengine Kubernetes Engine
Development guide
Terraform
Managing existing nodes in the default node pool by using Terraform
Terraform
Managing existing nodes in the default node pool by using Terraform
Managing existing nodes in the default node pool by using Terraform
This topic describes how to create a default node pool in a cluster created using Terraform, and how to add existing nodes to or remove existing nodes from the default node pool.
Prerequisites
Creating a default node pool and adding existing nodes to the default node pool
To create a default node pool using Terraform and add existing nodes to the default node pool, follow the steps below.
- Create a folder and a configuration file named main.tf in it.
- Initialize the Terraform environment.
- The expected result is as follows.
- Perform resource planning.
- The expected result is as follows.
- Create a default node pool and add existing nodes to the default node pool.
- The expected result is as follows.
- You can also check the existing nodes in the default node pool named vke-default-nodepool in the VKE console.
Removing nodes from the default node pool
To remove a previously added node from the default node pool using Terraform, follow these steps.
warning
Regardless of whether the billing method for the existing node to be removed is subscription or pay-as-you-go, this action will not release the node. You can release the node in the ECS console. For details, see Deleting instances. - Delete the content of the instances field from the main.tf file.
- Run the command to remove the node.
- The expected result is as follows.
- You can check whether the node has been removed from the default node pool in the VKE console.
Last updated: 2026.07.23 14:31:47