All Products
Search
Document Center

Container Service for Kubernetes:CreateClusterNodePool

Last Updated:Dec 01, 2026

A node pool is a logical collection of nodes that share the same property. It allows unified management and O&M of nodes, such as node upgrades and elastic scaling. You can use the automated O&M capabilities of node pools to reduce O&M costs by using features such as automatic repair of OS CVE vulnerabilities, automatic recovery of faulty nodes, and automatic upgrades of kubelet and containerd versions. You can invoke CreateClusterNodePool to create a node pool for a cluster.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cs:CreateClusterNodePool

create

*Cluster

acs:cs:{#regionId}:{#accountId}:cluster/{#ClusterId}

None None

Request syntax

POST /clusters/{ClusterId}/nodepools HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

ClusterId

string

Yes

The cluster ID.

c61da77e8bfbc4c4c999af2b51b65****

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body parameters.

nodepool_info

object

No

The node pool configuration.

name

string

Yes

The name of the node pool.

nodepool-test

type

string

No

The type of the node pool. Valid values:

  • ess: standard node pool (includes managed and elastic scaling features).

  • edge: edge node pool.

  • lingjun: Lingjun node pool.

  • hybrid: hybrid cloud node pool.

Valid values:

  • lingjun :

    Lingjun node pool.

  • edge :

    Edge node pool.

  • ess :

    Standard node pool.

ess

resource_group_id

string

No

The ID of the resource group to which the node pool belongs. Instances scaled out from the node pool belong to this resource group.

A resource can belong to only one resource group. You can map resource groups to concepts such as projects, applications, or organizations based on different business scenarios.

rg-acfmyvw3wjmb****

auto_scaling

object

No

The elastic scaling configuration.

enable

boolean

No

Specifies whether to enable auto scaling. Valid values:

  • true: enables auto scaling for the node pool. When the capacity planning of the cluster cannot meet the scheduling requirements of application pods, ACK automatically scales node resources based on the configured minimum and maximum number of instances. For clusters of version 1.24 and later, just-in-time node elasticity is enabled by default. For clusters earlier than version 1.24, node auto scaling is enabled by default. For more information, see Node auto scaling.

  • false: disables auto scaling. ACK adjusts the number of nodes in the node pool based on the configured expected number of nodes to keep the number of nodes at the expected value.

If this parameter is set to false, other configuration parameters in auto_scaling do not take effect.

Default value: false.

false

type

string

No

The instance type for elastic scaling. This parameter takes effect only when enable is set to true. Valid values:

  • cpu: standard instance.

  • gpu: GPU-accelerated instance.

  • gpushare: shared GPU instance.

  • spot: spot instance.

Default value: cpu.

Important This field cannot be modified after the node pool is created.

Valid values:

  • spot :

    Spot instance.

  • cpu :

    Standard instance.

  • gpushare :

    Shared GPU instance.

  • gpu :

    GPU-accelerated instance.

cpu

max_instances

integer

No

The maximum number of scalable instances in the node pool, excluding existing instances. This parameter takes effect only when enable is set to true.

Valid values: [min_instances, 2000]. Default value: 0.

10

min_instances

integer

No

The minimum number of scalable instances in the node pool, excluding existing instances. This parameter takes effect only when enable is set to true.

Valid values: [0, max_instances]. Default value: 0.

Note
  • If the minimum number of instances is not 0, automatic creation of the corresponding number of ECS instances is performed after the scaling group takes effect.

  • We recommend that the Settings for the maximum number of instances are not less than the current number of nodes in the node pool. Otherwise, the node pool is scaled in immediately after the elastic scaling feature takes effect.

1

scaling_config_enabled

boolean

No

Specifies whether to enable node pool-level scaling configuration. This parameter applies only to scaling_config. Default value: false.

true

scaling_config

object

No

The node pool-level scale-in configuration. This configuration takes effect only when scaling_config_enabled is set to true. Unspecified sub-fields inherit the global configuration of the auto scaling component.

scale_down_enabled

boolean

No

Specifies whether to allow scale-in for the node pool. If not specified, the global --scale-down-enabled value is inherited.

true

unneeded_duration

string

No

The duration of continuous low utilization before a node can be scaled in. Use the Go duration syntax, such as 10m or 1h. The value must be greater than 0. If not specified, the global --scale-down-unneeded-time value is inherited.

10m

utilization_threshold

string

No

The low utilization threshold for standard nodes. Valid values: [0,1]. If not specified, the global --scale-down-utilization-threshold value is inherited.

0.5

gpu_utilization_threshold

string

No

The low utilization threshold for GPU nodes. Valid values: [0,1]. If not specified, the global --scale-down-gpu-utilization-threshold value is inherited.

0.3

priority_policy

string

No

The priority policy for in-pool scale-out. Valid values: byInstanceType (scales out based on the order of instance types passed to the node pool, where a higher order indicates a higher priority), byInstanceTypeFamily (scales out based on the order of instance families passed to the node pool, where a higher order indicates a higher priority), and none (does not sort by priority, and the auto scaling component selects instances on demand). An empty value or none indicates that no priority sorting is performed, and the auto scaling component selects instances on demand.

Valid values:

  • byInstanceType
  • byInstanceTypeFamily
  • none

byInstanceType

is_bond_eip deprecated

boolean

No

[Deprecated] This field is deprecated. Use internet_charge_type and internet_max_bandwidth_out instead.

Specifies whether to bind an elastic IP address (EIP). Valid values:

  • true: binds an EIP.

  • false: does not bind an EIP.

Default value: false.

null

eip_internet_charge_type deprecated

string

No

[Deprecated] This field is deprecated. Use internet_charge_type and internet_max_bandwidth_out instead.

The billing method of the EIP. Valid values:

  • PayByBandwidth: pay-by-bandwidth.

  • PayByTraffic: pay-by-data-transfer.

Default value: PayByBandwidth.

null

eip_bandwidth deprecated

integer

No

[Deprecated] This field is deprecated. Use internet_charge_type and internet_max_bandwidth_out instead.

The peak bandwidth of the EIP. Unit: Mbit/s.

null

management

object

No

The managed node pool configuration.

enable

boolean

No

Specifies whether to enable the managed node pool feature. Valid values:

  • true: Enables the managed node pool feature.

  • false: Does not enable the managed node pool feature. Other related configurations take effect only when this parameter is set to true.

Default value: false.

false

auto_repair

boolean

No

Specifies whether to automatically repair nodes. This parameter takes effect only when enable is set to true. Valid values:

  • true: Automatically repairs nodes.

  • false: Does not automatically repair nodes.

Default value: true.

true

auto_repair_policy

object

No

The auto-repair policy.

auto_repair_policy_id

string

No

The ID of the auto-repair policy. If you do not specify this parameter or specify an empty string, no self-healing rule is bound.

r-xxxxxxxxxx

restart_node

boolean

No

Specifies whether to allow node restarts. This parameter takes effect only when auto_repair is set to true. Valid values:

  • true: Allows node restarts.

  • false: Does not allow node restarts.

Default value: true.

true

approval_required

boolean

No

Specifies whether manual approval is required for node repair.

max_parallel_repairing_nodes

string

No

The maximum number of parallel repairs. When a large number of abnormal nodes exist in the node pool, this parameter specifies the maximum number or percentage of nodes that can be repaired at the same time. You can specify a number (such as 5, valid values: 1 to 100000) or a percentage (such as 10%, valid values: 1% to 100%). Default value: 1.

5

max_unhealthy_nodes_threshold

string

No

The self-healing circuit breaker threshold. When the number or percentage of faulty nodes exceeds this threshold, self-healing enters the circuit breaker state and stops initiating new self-healing repair actions. You can specify a number (such as 10, valid values: 1 to 100000) or a percentage (such as 20%, valid values: 1% to 100%). Default value: 100%.

20%

auto_vul_fix

boolean

No

Specifies whether to automatically repair CVE vulnerabilities. This parameter takes effect only when enable is set to true. Valid values:

  • true: Automatically repairs CVE vulnerabilities.

  • false: Does not automatically repair CVE vulnerabilities.

Default value: true.

true

auto_vul_fix_policy

object

No

The auto CVE repair policy.

restart_node

boolean

No

Specifies whether to allow node restarts. This parameter takes effect only when auto_vul_fix is set to true. Valid values:

  • true: Allows node restarts.

  • false: Does not allow node restarts.

Default value: true.

false

vul_level

string

No

The vulnerability levels that are allowed for auto repair, separated by commas. Example: asap,later. Valid values:

  • asap: High

  • later: Medium

  • nntf: Low

Default value: asap.

asap,nntf

exclude_packages

string

No

The packages to be excluded during vulnerability repair.

Default value: kernel.

kernel

auto_upgrade

boolean

No

Specifies whether to automatically upgrade nodes. This parameter takes effect only when enable is set to true. Valid values:

  • true: Enables auto upgrade.

  • false: Disables auto upgrade.

Default value: true.

true

auto_upgrade_policy

object

No

The auto upgrade policy.

auto_upgrade_kubelet

boolean

No

Specifies whether to allow automatic kubelet upgrades. This parameter takes effect only when auto_upgrade is set to true. Valid values:

  • true: Allows automatic kubelet upgrades.

  • false: Does not allow automatic kubelet upgrades.

Default value: true.

true

auto_upgrade_runtime

boolean

No

Specifies whether to allow automatic runtime upgrades. This parameter takes effect only when auto_upgrade is set to true. Valid values:

  • true: Allows automatic runtime upgrades.

  • false: Does not allow automatic runtime upgrades.

Default value: true.

false

auto_upgrade_os

boolean

No

Specifies whether to allow automatic operating system upgrades. This parameter takes effect only when auto_upgrade is set to true. Valid values:

  • true: Allows automatic operating system upgrades.

  • false: Does not allow automatic operating system upgrades.

Default value: false.

false

upgrade_config deprecated

object

No

[Deprecated] Use the auto_upgrade parameter at the upper level instead.

The auto upgrade configuration. This parameter takes effect only when enable is set to true.

auto_upgrade deprecated

boolean

No

[Deprecated] Use the auto_upgrade parameter at the upper level instead.

Specifies whether to enable auto upgrade. Valid values:

  • true: Enables auto upgrade.

  • false: Disables auto upgrade.

null

surge

integer

No

The number of surge nodes. You must specify either this parameter or surge_percentage.

Nodes become unavailable during an upgrade. You can create surge nodes to compensate for the cluster load.

Note

Do not create more surge nodes than the current number of nodes.

0

surge_percentage

integer

No

The percentage of surge nodes. You must specify either this parameter or surge.

Number of surge nodes = Surge node percentage × Number of nodes. For example, if the surge node percentage is set to 50% and the number of existing nodes is 6, the number of surge nodes generated is 50% × 6 = 3.

0

max_unavailable

integer

No

The maximum number of unavailable nodes. Valid values: 1 to 1000.

Default value: 1.

1

auto_fault_diagnosis

boolean

No

Specifies whether to enable ECS fault detection for node self-healing.

drift_enabled

boolean

No

Specifies whether to enable node rotation. This feature is supported only by intelligent managed node pools and is enabled by default. Common node pools do not support this feature.

scaling_group

object

No

The scaling group configuration of the node pool.

vswitch_ids

array

Yes

The list of vSwitch IDs. Valid values: 1 to 8.

Note

To ensure high availability, select vSwitches in different zones.

string

No

The vSwitch ID.

vsw-wz9mfnhmssud6eicu****

instance_types

array

Yes

The list of instance types for nodes in the node pool. When the node pool scales out, instances are created based on the specified instance types.

Valid values: 1 to 10.

Note

To ensure high availability, select multiple instance types.

string

No

The instance type. For more information, see Instance families.

ecs.d1ne.2xlarge

instance_charge_type

string

Yes

The billing method of nodes in the node pool. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

Default value: PostPaid.

Deleting a node pool, scaling in a node pool, or removing nodes does not automatically release subscription nodes. Automatic release subscription nodes, change the billing method of the nodes from subscription to pay-as-you-go and then log on to the ECS console automatic release them.

Valid values:

  • PostPaid :

    Pay-as-you-go instance.

  • PrePaid :

    Subscription instance.

PostPaid

period

integer

No

The subscription duration of nodes in the node pool. This parameter takes effect and is required only when instance_charge_type is set to PrePaid.

  • If period_unit is set to Week, valid values of period are 1, 2, 3, and 4.

  • If period_unit is set to Month, valid values of period are 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, 36, 48, and 60.

1

period_unit

string

No

The billing epoch of nodes in the node pool. This parameter takes effect and is required only when instance_charge_type is set to PrePaid.

  • Month: month.

  • Week: uses the week as the compute unit (CU).

Default value: Month.

Month

auto_renew

boolean

No

Specifies whether to enable auto-renewal for nodes in the node pool. This parameter takes effect only when instance_charge_type is set to PrePaid. Valid values:

  • true: enables auto-renewal.

  • false: disables auto-renewal.

Default value: false.

true

auto_renew_period

integer

No

The auto-renewal period. Valid values:

  • If PeriodUnit is set to Week: 1, 2, and 3.

  • If PeriodUnit is set to Month: 1, 2, 3, 6, 12, 24, 36, 48, and 60.

Default value: 1.

1

spot_strategy

string

No

The bidding policy for spot instances. Valid values:

  • NoSpot: non-spot instance.

  • SpotWithPriceLimit: sets a maximum price for the spot instance.

  • SpotAsPriceGo: uses the automatic bidding strategy, which follows the actual market price.

For more information, see Spot instances.

NoSpot

spot_price_limit

array<object>

No

The market price range configuration for a single spot instance of a specific instance type.

object

No

The market price range configuration for spot instances. You can set different price ranges for different instance types.

instance_type

string

No

The instance type of the spot instance.

ecs.c6.large

price_limit

string

No

The maximum price per instance.

Unit: USD/hour.

0.39

image_type

string

No

The type of the operating system image. Valid values:

  • AliyunLinux: Alinux2 image.

  • AliyunLinuxSecurity: Alinux2 UEFI image.

  • AliyunLinux3: Alinux3 image.

  • AliyunLinux3Arm64: Alinux3 ARM image.

  • AliyunLinux3Security: Alinux3 UEFI image.

  • CentOS: CentOS image.

  • Windows: Windows image.

  • WindowsCore: Windows Core image.

  • ContainerOS: container-optimized image.

  • AliyunLinux3ContainerOptimized: Alinux3 container-optimized image.

AliyunLinux3

image_id

string

No

The ID of the custom image. By default, the system image is used.

aliyun_2_1903_x64_20G_alibase_20200529.vhd

system_disk_category

string

No

The system cloud disk type of nodes. Valid values:

  • cloud_efficiency: ultra disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: ESSD.

  • cloud_auto: ESSD AutoPL disk.

  • cloud_essd_entry: ESSD Entry disk.

Default value: cloud_efficiency.

cloud_efficiency

system_disk_categories

array

No

The multiple system cloud disk types. If a high-priority disk type is unavailable, the system automatically attempts to create the system cloud disk by using the next priority disk type.

string

No

The multiple system cloud disk types of nodes. Valid values:

  • cloud: basic disk.

  • cloud_efficiency: ultra disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: ESSD.

  • cloud_auto: ESSD AutoPL disk.

  • cloud_essd_entry: ESSD Entry disk.

cloud_essd

system_disk_size

integer

No

The size of the system cloud disk. Unit: GiB.

Valid values: 20 to 2048.

120

system_disk_performance_level

string

No

The performance level of the system cloud disk. This parameter takes effect only for ESSD standard SSDs. The performance level varies based on the disk size. For more information, see ESSD standard SSDs.

  • PL0: provides medium concurrent I/O performance and relatively stable read/write latency.

  • PL1: provides medium concurrent I/O performance and relatively stable read/write latency.

  • PL2: provides high concurrent I/O performance and stable read/write latency.

  • PL3: provides ultra-high concurrent I/O performance and extremely stable read/write latency.

PL1

system_disk_encrypted

boolean

No

Specifies whether to encrypt the system cloud disk. Valid values:

  • true: encrypts the system cloud disk.

  • false: does not encrypt the system cloud disk.

false

system_disk_kms_key_id

string

No

The ID of the KMS key used to encrypt the system cloud disk.

0e478b7a-4262-4802-b8cb-00d3fb40****

system_disk_encrypt_algorithm

string

No

The encryption algorithm used for the system cloud disk. Valid value: aes-256.

aes-256

system_disk_bursting_enabled

boolean

No

Specifies whether to enable performance burst for the system cloud disk. Valid values:

  • true: enables performance burst.

  • false: disables performance burst.

This parameter is supported only when system_disk_category is set to cloud_auto. For more information, see ESSD AutoPL disks.

true

system_disk_provisioned_iops

integer

No

The provisioned read and write IOPS of the system cloud disk.

Valid values: 0 to min{50,000, 1000 × Capacity - Baseline performance}. Baseline performance = min{1,800 + 50 × Capacity, 50000}.

This parameter is supported only when system_disk_category is set to cloud_auto. For more information, see ESSD AutoPL disks.

1000

data_disks

array

No

The data cloud disk configuration of nodes in the node pool.

data_disk

No

The data cloud disk configuration.

security_group_ids

array

No

The list of security group IDs. Specify either security_group_id or security_group_ids. security_group_ids is recommended. If both parameters are specified, security_group_ids takes precedence.

string

No

The list of security group IDs. Specify either security_group_id or security_group_ids. security_group_ids is recommended. If both parameters are specified, security_group_ids takes precedence.

sg-wz9a8g2mt6x5ll******

key_pair

string

No

The name of the key pair used for passwordless logon. You must specify either this parameter or login_password.

Note

If the node pool uses the ContainerOS operating system, only key_pair is supported.

np-key-name

login_password

string

No

The SSH logon password. You must specify either this parameter or key_pair. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

AckDemo123****

login_as_non_root

boolean

No

Specifies whether to log on to the created ECS instances as a non-root user. Valid values:

  • true: logs on as a non-root user (ecs-user).

  • false: logs on as the root user.

true

cis_enabled deprecated

boolean

No

[Deprecated] Use the security_hardening_os parameter instead.

null

soc_enabled

boolean

No

Specifies whether to enable MLPS 2.0 security hardening. This feature is available only when the system image is Alibaba Cloud Linux 2 or Alibaba Cloud Linux 3. Alibaba Cloud provides classified protection compliance baseline check standards and scanning programs for Alibaba Cloud Linux 2 and Alibaba Cloud Linux 3 MLPS 2.0 Level 3 images.

false

security_hardening_os

boolean

No

Specifies whether to enable Alibaba Cloud OS security hardening. Valid values:

  • true: enables Alibaba Cloud OS security hardening.

  • false: disables Alibaba Cloud OS security hardening.

Default value: false.

false

internet_charge_type

string

No

The billing method for the public IP address. Valid values:

  • PayByBandwidth: pay-by-bandwidth.

  • PayByTraffic: pay-by-traffic.

PayByTraffic

internet_max_bandwidth_out

integer

No

The maximum outbound bandwidth for the public IP address of the node. Unit: Mbit/s. Valid values: 1 to 100.

5

tags

array<object>

No

Adds tags only to ECS instances.

Tag keys must be unique and can be up to 128 characters in length. Tag keys and tag values cannot start with "aliyun" or "acs:", and cannot contain "https://" or "http://".

object

No

The node tag.

key

string

No

The tag key.

node-k-1

value

string

No

The tag value.

node-v-1

desired_size

integer

No

The expected number of nodes in the node pool.

This is the total number of nodes that the node pool should maintain. Configure at least 2 nodes to ensure the normal operation of cluster components. You can scale out or scale in the node pool by adjusting this value.

If you do not need to create nodes, set this parameter to 0 and manually increase the number of nodes later.

0

multi_az_policy

string

No

The scaling policy for ECS instances in a multi-zone scaling group. Valid values:

  • PRIORITY: scales based on the vSwitches that you specify in VSwitchIds.N. If ECS instances cannot be created in the active zone of the vSwitch with the highest priority, the system automatically uses the vSwitch with the next highest priority to create ECS instances.

  • COST_OPTIMIZED: attempts to create instances in ascending order of vCPU unit price. If the scaling configuration settings specify multiple instance types that use the preemptible Billable methods, the system preferentially creates spot instances. You can use the CompensateWithOnDemand parameter to specify whether to automatically attempt to create pay-as-you-go instances when spot instances cannot be created due to insufficient inventory or other reasons.

    Note

    COST_OPTIMIZED takes effect only when the scaling configuration specifies multiple instance types or uses spot instances.

  • BALANCE: evenly allocates ECS instances across the multiple active zones specified in the scaling group. If the instances are unevenly distributed across active zones due to insufficient inventory or other reasons, you can call the RebalanceInstances API operation to balance the resources.

Default value: PRIORITY.

COST_OPTIMIZED

scaling_policy

string

No

The scaling group pattern. Valid values:

  • release: the standard pattern. The system scales by creating and releasing ECS instances based on the requested resource usage.

  • recycle: the swift pattern. The system scales by creating, stopping, and starting instances to improve the speed of subsequent scaling operations. When an instance is stopped, you are not charged for compute resources, but you are still charged for storage resources, except for instances with local disks.

Default value: release.

release

on_demand_base_capacity

integer

No

The minimum number of pay-as-you-go instances required by the scaling group. Valid values: [0,1000]. If the number of pay-as-you-go instances is less than this value, the system preferentially creates pay-as-you-go instances.

0

on_demand_percentage_above_base_capacity

integer

No

The percentage of pay-as-you-go instances among the excess instances after the scaling group meets the minimum number of pay-as-you-go instances specified by on_demand_base_capacity. Valid values: [0,100].

20

spot_instance_pools

integer

No

The number of active instance types. The scaling group evenly creates spot instances across the specified number of instance types with the lowest costs. Valid values: [1,10].

5

spot_instance_remedy

boolean

No

Specifies whether to enable spot instance replenishment. After this feature is enabled, when the system sends a message that a preemptible instance will be reclaimed, the scaling group attempts to create a new instance to replace the preemptible instance to be reclaimed. Valid values:

  • true: enables spot instance replenishment.

  • false: disables spot instance replenishment.

false

compensate_with_on_demand

boolean

No

Specifies whether to allow the system to automatically attempt to create pay-as-you-spot instances to meet the required number of ECS instances when multi_az_policy is set to COST_OPTIMIZED and sufficient preemptible instances cannot be created due to price, inventory, or other reasons. Valid values:

  • true: allows the system to automatically attempt to create pay-as-you-spot instances to meet the required number of ECS instances.

  • false: does not allow the system to automatically attempt to create pay-as-you-spot instances to meet the required number of ECS instances.

true

enable_high_density_mode

boolean

No

Specifies whether to enable the high-density cloud disk mode. This mode is supported only when the node pool uses instance types. After this mode is enabled, the total number of system cloud disks and data cloud disks does not exceed the maximum number of high-density cloud disks supported by the instance type.

false

deploymentset_id

string

No

The deployment set ID. You can use a deployment set to distribute the ECS instances created by the node pool across different physical servers to ensure high availability and underlying disaster recovery capabilities for your business. When you create ECS instances in a deployment set, the system starts the ECS instances in the specified region in a distributed manner based on the predefined deployment policy.

Important After you select a deployment set, the maximum number of nodes in the node pool is limited. By default, a deployment set supports a maximum of 20 × the number of zones. The number of zones is determined by the vSwitches. Select a deployment set with caution and ensure that the quota in the deployment set is sufficient to prevent node creation failures.

ds-bp1d19mmbsv3jf6xxxxx

rds_instances

array

No

The list of ApsaraDB RDS instances.

string

No

The ApsaraDB RDS instance ID.

rds-****

private_pool_options

object

No

The private node pool configuration.

id

string

No

The private node pool ID. When match_criteria is set to Target, you must specify the private pool ID.

eap-bp67acfmxazb4****

match_criteria

string

No

The private node pool type, which is the private pool capacity option for instance startup. After the elasticity assurance or capacity reservation service takes effect, a private pool capacity is generated for you to select when you start instances. Valid values:

  • Open: the open mode. The system automatically matches the capacity of an open private pool. If no eligible private pool capacity is available, the system uses public pool resources to start the instance. In this mode, you do not need to set the PrivatePoolOptions.Id parameter.

  • Target: the specified mode. The system uses the capacity of the specified private pool to start the instance. If the specified private pool capacity is unavailable, the instance fails to start. In this mode, you must specify the private pool ID, which means the PrivatePoolOptions.Id parameter is required.

  • None: the disabled mode. The system does not use private pool capacity to start the instance.

Target

security_group_id deprecated

string

No

The security group ID of the node pool. You can specify this parameter or security_group_ids. We recommend that you use security_group_ids.

sg-wz9a8g2mt6x5llu0****

platform deprecated

string

No

[Deprecated] Use the image_type parameter instead.

The operating system distribution. Valid values:

  • CentOS

  • AliyunLinux

  • Windows

  • WindowsCore

Default value: AliyunLinux.

null

instance_patterns

array

No

The instance property configuration.

instance_patterns

No

The instance properties.

ram_role_name

string

No

The name of the worker RAM role.

  • If this parameter is left empty, the system uses the worker RAM role that is created by default for the cluster.

  • If this parameter is not empty, the specified RAM role must be a normal service role, and its trusted service must be configured as ECS. For more information, see Create a normal service role. If the specified RAM role is not the worker RAM role created by default for the cluster, the role name cannot start with KubernetesMasterRole- or KubernetesWorkerRole-.

Important This parameter is supported only by ACK managed clusters of version 1.22 and later.

example-role

instance_metadata_options InstanceMetadataOptions

No

The ECS instance metadata access configuration.

resource_pool_options

object

No

The resource pool and resource pool policy used when creating instances. Note the following when you set this parameter: This parameter takes effect only when you create pay-as-you-go instances. This parameter cannot be set at the same time as private_pool_options.match_criteria and private_pool_options.id.

strategy

string

No

The resource pool policy used when creating instances. Resource pools include private pools generated after the elasticity assurance or capacity reservation service takes effect, as well as public pools, which are available for selection when starting instances. Valid values: PrivatePoolFirst: private pool first. If you select this policy and specify resouce_pool_options.private_pool_ids, the system preferentially uses the specified private pools. If no private pool is specified or the specified private pools have insufficient capacity, the system automatically matches the capacity of an open private pool. If no eligible private pool is available, the system uses the public pool to create the instance. PrivatePoolOnly: private pool only. If you select this policy, you must specify resouce_pool_options.private_pool_ids. If the specified private pools have insufficient capacity, the instance fails to start. None: no resource pool policy is used. Default value: None.

Valid values:

  • PrivatePoolOnly
  • PrivatePoolFirst
  • None

PrivatePoolFirst

private_pool_ids

array

No

The list of private pool IDs, which are the elasticity assurance service IDs or capacity reservation service IDs. This parameter only accepts private pool IDs in Target mode. Valid values of N: 1 to 20.

string

No

The private pool ID, which is the elasticity assurance service ID or capacity reservation service ID. This parameter only accepts a private pool ID in Target mode.

eap-bp67acfmxazb4****

system_disk_snapshot_policy_id

string

No

The snapshot policy for the system cloud disk.

sp-0jl6xnmme8v7o935****

disk_init

array

No

The block device initialization configuration.

DiskInit

No

The DiskInit configuration.

cpu_options

object

No

The CPU-related configuration options.

nested_virtualization

string

No

Specifies whether to enable nested virtualization. Valid values: disabled: disables nested virtualization. enabled: enables nested virtualization.

Valid values:

  • disabled
  • enabled

enabled

node_config

object

No

The node configuration.

kubelet_configuration kubelet_config

No

The Kubelet parameter settings.

node_os_config

object

No

The node operating system configuration.

sysctl

object

No

The sysctl kernel parameter settings. Only specific kernel parameters are supported, and the cluster version must be 1.28 or later.

{"fs.file-max":"1048576"}

any

No

The sysctl kernel parameter values, passed as strings.

1048576

hugepage Hugepage

No

The transparent huge page configuration.

kubernetes_config

object

No

The cluster-related configuration.

labels

array

No

The node labels. Adds labels to the nodes in the Kubernetes cluster.

tag

No

The label configuration.

taints

array

No

The taint configuration.

taint

No

The collection of taint configurations.

runtime

string

No

The name of the container runtime. ACK supports the following three container runtimes:

  • containerd: Recommended. Supported by all cluster versions.

  • Sandboxed-Container.runv: Sandboxed container. Provides higher isolation. Supported by clusters of version 1.31 and earlier.

  • docker: Deprecated. Supported by clusters of version 1.22 and earlier.

Default value: containerd.

containerd

runtime_version

string

No

The container runtime version.

1.6.38

cpu_policy

string

No

The CPU management policy for the node. The following two policies are supported when the cluster version is 1.12.6 or later:

  • static: Allows pods with specific resource characteristics on the node to have enhanced CPU affinity and exclusivity.

  • none: Indicates that the existing default CPU affinity scheme is used.

Default value: none.

none

user_data

string

No

The instance user data. After the node is added to the cluster, the specified instance user data script is run. For more information, see User data scripts.

dGhpcyBpcyBhIGV4YW1wbGU=

unschedulable

boolean

No

Specifies whether the scaled-out nodes are unschedulable.

  • true: Unschedulable.

  • false: Schedulable.

true

cms_enabled

boolean

No

Specifies whether to install CloudMonitor on the ECS node. After installation, you can view the monitoring information of the created ECS instances in the CloudMonitor console. Recommended. Valid values:

  • true: Install CloudMonitor on the ECS node.

  • false: Do not install CloudMonitor on the ECS node.

Default value: false.

false

node_name_mode

string

No

The custom node name. After you customize the node name, the node name, ECS instance name, and ECS instance hostname are changed simultaneously.

Note

For a Windows instance with a custom node name enabled, the hostname is fixed to the IP address, with hyphens (-) replacing dots (.) in the IP address, and does not include the prefix and suffix.

The node name consists of three parts: prefix, node IP address, and suffix:

  • The total length is 2 to 64 characters. The node name must start and end with a lowercase letter or a digit.

  • The prefix and suffix can contain uppercase and lowercase letters, digits, hyphens (-), and dots (.). They must start with a letter and cannot start or end with a hyphen (-) or a dot (.). Consecutive hyphens (-) or dots (.) are not allowed.

  • The prefix is required (due to ECS limits), and the suffix is optional.

  • The node IP address is the complete private IP address of the node.

For example, if the node IP address is 192.XX.YY.55, the specified prefix is aliyun.com, and the suffix is test:

  • If the node is a Linux node, the node name, ECS instance name, and ECS instance hostname are all aliyun.com192.XX.YY.55test.

  • If the node is a Windows node, the ECS instance hostname is 192-XX-YY-55, and both the node name and ECS instance name are aliyun.com192.XX.YY.55test.

aliyun.com192.XX.YY.55test

pre_user_data

string

No

The instance pre-custom data. Before the node is added to the cluster, the specified instance pre-custom data script is run. For more information, see User data scripts.

dGhpcyBpcyBhIGV4YW1wbGU

tee_config

object

No

The confidential computing cluster configuration.

tee_enable

boolean

No

Specifies whether to enable confidential computing for the cluster.

  • true: Enable confidential computing.

  • false: Do not enable confidential computing.

true

interconnect_config deprecated

object

No

[Deprecated]

The edge node pool configuration.

cen_id

string

No

[Deprecated]

The Cloud Enterprise Network (CEN) instance ID attached to the edge-optimized node pool.

null

ccn_id

string

No

[Deprecated]

The Cloud Connect Network (CCN) instance ID attached to the edge-optimized node pool.

null

ccn_region_id

string

No

[Deprecated]

The region of the CCN instance bound to the edge-optimized node pool.

null

bandwidth

integer

No

[Deprecated]

The network bandwidth of the edge-optimized node pool. Unit: Mbit/s.

null

improved_period

string

No

[Deprecated]

The subscription duration of the edge-optimized node pool. Unit: months.

null

count deprecated

integer

No

[Deprecated] Use desired_size instead.

The number of nodes in the node pool.

null

max_nodes deprecated

integer

No

[Deprecated]

The maximum number of nodes allowed in the edge node pool.

null

interconnect_mode

string

No

The network type of the edge node pool. This parameter takes effect only for node pools whose type is edge. Valid values:

  • basic: Internet. Nodes in cloud node pool interact with cloud nodes over the Internet. Applications in cloud node pool cannot directly access the internal network of the cloud VPC.

  • private: Private network. Nodes in cloud node pool connect the cloud and on-premises networks through Express Connect circuits, VPNs, or CEN. This provides higher cloud-edge communication quality and more effective security protection.

basic

host_network

boolean

No

Specifies whether the pod network mode uses the host network mode.

  • true: Host network. Pods directly use the host network stack and share the IP address and ports with the host.

  • false: Container network. Pods have an independent network stack and do not occupy host network ports.

true

intranet

boolean

No

Specifies whether Layer 3 network connectivity is enabled among nodes in the edge node pool.

  • true: Connected. Layer 3 network connectivity is enabled among all nodes in the node pool.

  • false: Disconnected. Layer 3 network connectivity is disabled among all hosts in the node pool.

true

eflo_node_group

object

No

The Lingjun node pool configuration.

cluster_id

string

No

The ID of the Lingjun cluster to be associated when creating the Lingjun node pool.

i1169130516633730****

group_id

string

No

The ID of the Lingjun group in the Lingjun cluster to be associated when creating the Lingjun node pool.

ng-ec3c96ff0aa****

auto_attach_enabled

boolean

No

Specifies whether to enable automatic addition for the Lingjun node pool.

worker_ram_role_name

string

No

The worker RAM role used by the Lingjun node pool.

KubernetesWorkerRole-1025ec00-9a27-4c63-8a98-******

auto_mode

object

No

The intelligent management configuration for the node pool.

enable

boolean

No

Specifies whether to enable the intelligent management mode. Valid values:

  • true: Enable the intelligent management mode. This can be enabled only when the intelligent management mode is enabled for the cluster.

  • false: Do not enable the intelligent management mode.

true

node_components

array<object>

No

The list of node components.

array<object>

No

The node component.

name

string

No

The name of the node component.

kubelet

version

string

No

The version of the node component.

1.33.3-aliyun.1

config

object

No

The configuration of the node component.

custom_config

object

No

The custom configuration of the node component.

{"cpuManagerPolicy":"static"}

any

No

The custom configuration string of the node component.

cpuManagerPolicy

envs

array<object>

No

The environment variables of the node component.

object

No

name

string

No

The name of the environment variable.

LOG_LEVEL

value

string

No

The value of the environment variable.

info

Response elements

Element

Type

Description

Example

object

The node pool configuration.

nodepool_id

string

The ID of the node pool.

np31da1b38983f4511b490fc62108a****

task_id

string

The ID of the task.

T-613b19bbd160ad492800****

request_id

string

The ID of the request.

0527ac9a-c899-4341-a21a-****

Examples

Success response

JSON format

{
  "nodepool_id": "np31da1b38983f4511b490fc62108a****",
  "task_id": "T-613b19bbd160ad492800****",
  "request_id": "0527ac9a-c899-4341-a21a-****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.