Volcengine Kubernetes Engine
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Action | String | Yes | DeleteNodes | The API name. The name of the current API is DeleteNodes. |
Version | String | Yes | May 12, 2022 | The API version. The API version is 2022-05-12. |
ClusterId | String | Yes | cc5sil****** | Cluster ID. warning The cluster must be in one of the following states:
|
NodePoolId | String | No | pc8oah9******** | The node pool ID. warning The node pool must be in one of the following states:
|
Ids | Array of String | Yes | ["nc5t5epm******"] | A list of node IDs. You can call the ListNodes API to obtain the node ID. At most 100 node IDs can be specified per call. warning
|
CascadingDeleteResources | Array of String | No | ["Ecs"] | warning Parameter deprecation notes:
Synchronously delete the associated resources of the specified nodes. Values:
tip During deletion, resources cannot be deleted if deletion protection is enabled for these resources. Otherwise, they will continue to be deleted. We recommend that you adjust the deletion protection settings based on your business requirements before calling the API. |
RetainResources | Array of String | No | ["Ecs"] | warning
The resources to be retained after node deletion. Valid values:
tip During deletion, resources cannot be deleted if deletion protection is enabled for these resources. Otherwise, they will continue to be deleted. We recommend that you adjust the deletion protection settings based on your business requirements before calling the API. |
Drain | Boolean | No | false | Whether to drain the node before it is deleted. Valid values:
|
HTTP status code | Error code | Error message | Description |
HTTP status code | Error code | Error message | Description |
400 | OperationDenied.ClusterStatus | The action is forbidden due to cluster status {{statusPhase}} and {{statusConditions}}. | The current status of the specified cluster does not support this operation. Confirm the required cluster status for this API and try again. |
400 | OperationDenied.NodePoolStatus | The action is forbidden on node pool {{nodePoolId}} due to node pool status {{statusPhase}} and {{statusConditions}}. | The current status of the specified node pool does not support this operation. Please confirm the required node pool status for this API and try again. |
400 | OperationDenied.NodeStatus | The action is forbidden on node {{nodeId}} due to node status {{statusPhase}} and {{statusConditions}}. | The current node status does not support this operation. Please confirm the required node status for this API and try again. |
400 | OperationDenied.NodePoolReplicas | The operation has been denied due to the node pool min/max replicas limit. | The maximum node count for this node pool has been reached. Please reduce the number of ECS instance IDs to be added and try again later. If autoscaling is enabled for the target node pool, you can update the maximum number of nodes (MaxReplicas) in the target node pool. Then, call this API again to add existing nodes. Call the UpdateNodePoolConfig API to update the node pool. |
400 | AffinityGroupMismatch.InstanceIds | The specified InstanceIds and AffinityGroup {{AffinityGroupId}} are mismatched. | The specified ECS instances do not match the affinity group configuration. The number of nodes in the affinity group-based node pool must be an integer multiple of the affinity group size. Check the specified nodes and node pools, confirm the relevant parameters, and try again later. |