All Products
Search
Document Center

Container Service for Kubernetes:CreateClusterNodePool

Last Updated:Nov 02, 2026

Creates a node pool for a cluster. A node pool is a logical collection of nodes that share the same property, allowing unified management and O&M of nodes, such as node upgrades and elastic scaling. You can further use the automated O&M capabilities of node pools to reduce O&M costs. These features include 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.

auto_mode

object

No

The intelligent management configuration of the node pool.

enable

boolean

No

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

  • true: enables the intelligent management mode. This value is valid only when the intelligent management mode is enabled for the cluster.

  • false: disables the intelligent management mode.

true

auto_scaling

object

No

The elastic scaling configuration.

eip_bandwidth deprecated

integer

No

[Deprecated] Use internet_charge_type and internet_max_bandwidth_out instead. The peak bandwidth of the EIP. Unit: Mbit/s.

null

eip_internet_charge_type deprecated

string

No

[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

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 the node resources based on the configured minimum and maximum numbers of instances. For clusters of Kubernetes version 1.24 and later, just-in-time elasticity is enabled by default. For clusters earlier than version 1.24, auto scaling is enabled by default. For more information, see Node scaling.

  • false: disables auto scaling. ACK adjusts the number of nodes in the node pool based on the configured expected number of nodes and always maintains the number of nodes at the expected value. When this parameter is set to false, other configuration parameters in auto_scaling do not take effect. Default value: false.

false

is_bond_eip deprecated

boolean

No

[Deprecated] Use internet_charge_type and internet_max_bandwidth_out instead. Specifies whether to bind an EIP. Valid values:

  • true: binds an EIP.

  • false: does not bind an EIP. Default value: false.

null

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, the automatic creation of the corresponding number of ECS instances is triggered after the scaling group takes effect.

  • Set the maximum number of instances to a value greater than or equal to the current number of nodes in the node pool. Otherwise, the nodes in the node pool are directly scaled in after the elastic scaling feature takes effect.

1

type

string

No

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

  • cpu: regular instance.

  • gpu: GPU-accelerated instance.

  • gpushare: shared GPU-accelerated instance.

  • spot: spot instance. Default value: cpu.
    Important This parameter cannot be modified after the node pool is created.

Valid values:

  • spot :

    Spot instance.

  • cpu :

    Regular instance.

  • gpushare :

    Shared GPU-accelerated instance.

  • gpu :

    GPU-accelerated instance.

cpu

count deprecated

integer

No

[Deprecated] Use desired_size instead. The number of nodes in the node pool.

null

eflo_node_group

object

No

The Lingjun node pool configuration.

auto_attach_enabled

boolean

No

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

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****

worker_ram_role_name

string

No

The worker RAM role used by the Lingjun node pool.

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

host_network

boolean

No

Specifies whether pods in the edge node pool are deployed in host network mode. Valid values:

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

  • false: container network. Pods have independent network stacks and do not occupy the network ports of the host.

true

interconnect_config deprecated

object

No

[Deprecated] The edge node pool configuration.

bandwidth

integer

No

[Deprecated] The network bandwidth of the enhanced edge node pool. Unit: Mbit/s.

null

ccn_id

string

No

[Deprecated] The Cloud Connect Network (CCN) instance ID attached to the enhanced edge node pool.

null

ccn_region_id

string

No

[Deprecated] The region ID of the CCN instance bound to the enhanced edge node pool.

null

cen_id

string

No

[Deprecated] The Cloud Enterprise Network (CEN) instance ID attached to the enhanced edge node pool.

null

improved_period

string

No

[Deprecated] The subscription duration of the enhanced edge node pool. Unit: months.

null

interconnect_mode

string

No

The network type of the edge node pool. This parameter takes effect only when type is set to edge. Valid values:

  • basic: public network. Nodes in cloud node pool interact with cloud nodes over the public network. 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

intranet

boolean

No

Specifies whether Layer 3 network connectivity is enabled between nodes in the edge node pool. Valid values:

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

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

true

kubernetes_config

object

No

The cluster-related configurations.

cms_enabled

boolean

No

Specifies whether to install CloudMonitor on ECS nodes. After installation, you can view the monitoring information of the created ECS instances in the CloudMonitor console. Enabling this feature is recommended. Valid values:

  • true: installs CloudMonitor on ECS nodes.

  • false: does not install CloudMonitor on ECS nodes.

Default value: false.

false

cpu_policy

string

No

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

  • static: allows you to enhance CPU affinity and exclusivity for pods with specific resource characteristics on the node.

  • none: enables the existing default CPU affinity scheme.

Default value: none.

none

labels

array

No

The labels added to the nodes in the Kubernetes cluster.

tag

No

The label configuration.

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 at the same time.

Note

For Windows instances with custom node names enabled, the hostname is fixed to the IP address, with hyphens (-) replacing the dots (.) in the IP address, and does not include prefixes or suffixes.

The node name consists of three parts: a prefix, the node IP address, and a 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 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 pre-custom data for the instance. Before the node joins the cluster, the specified pre-custom data script is run. For more information, see User data scripts.

dGhpcyBpcyBhIGV4YW1wbGU

runtime

string

No

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

  • containerd: recommended. Supports all cluster versions.

  • Sandboxed-Container.runv: secure sandboxed containers that provide higher isolation. Supports cluster versions 1.31 and earlier.

  • docker: no longer maintained. Supports cluster versions 1.22 and earlier.

Default value: containerd.

containerd

runtime_version

string

No

The container runtime version.

1.6.38

taints

array

No

The taint configuration.

taint

No

The collection of taint configurations.

unschedulable

boolean

No

Specifies whether the nodes are unschedulable after a scale-out. Valid values:

  • true: The nodes are unschedulable.

  • false: The nodes are schedulable.

true

user_data

string

No

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

dGhpcyBpcyBhIGV4YW1wbGU=

management

object

No

The configuration for the managed node pool feature.

auto_fault_diagnosis

boolean

No

Specifies whether to enable ECS fault detection for node auto-recovery.

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 for nodes.

approval_required

boolean

No

Specifies whether manual approval is required for node repair.

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 auto-recovery rule is bound.

r-xxxxxxxxxx

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 on the backend: 1.

5

max_unhealthy_nodes_threshold

string

No

The circuit breaker condition for auto-recovery. When the number or percentage of faulty nodes exceeds this threshold, auto-recovery enters the circuit breaker state and stops initiating new auto-recovery 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 on the backend: 100%.

20%

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

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 for nodes.

auto_upgrade_kubelet

boolean

No

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

  • true: allows automatic upgrades of kubelet.

  • false: does not allow automatic upgrades of kubelet.

Default value: true.

true

auto_upgrade_os

boolean

No

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

  • true: allows automatic upgrades of the operating system.

  • false: does not allow automatic upgrades of the operating system.

Default value: false.

false

auto_upgrade_runtime

boolean

No

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

  • true: allows automatic upgrades of the runtime.

  • false: does not allow automatic upgrades of the runtime.

Default value: true.

false

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: allows automatic repair of CVEs.

  • false: does not allow automatic repair of CVEs.

Default value: true.

true

auto_vul_fix_policy

object

No

The auto-repair policy for CVEs.

exclude_packages

string

No

The packages to be excluded during vulnerability repair.

Default value: kernel.

kernel

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 automatic repair, separated by commas. Example: asap,later. Supported vulnerability levels:

  • asap: high

  • later: medium

  • nntf: low

Default value: asap.

asap,nntf

drift_enabled

boolean

No

Specifies whether to enable the node rotation feature. This feature is supported only by intelligent managed node pools and is enabled by default. It is not supported by regular node pools.

enable

boolean

No

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

  • true: enables the managed feature.

  • false: disables the managed feature. Other related configurations take effect only when enable is set to true.

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

max_unavailable

integer

No

The maximum number of unavailable nodes. Valid values: [1,1000].

Default value: 1.

1

surge

integer

No

The number of surge nodes. This parameter and surge_percentage are mutually exclusive.

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

Note

The number of created surge nodes should not exceed the current number of nodes.

0

surge_percentage

integer

No

The percentage of surge nodes. This parameter and surge are mutually exclusive.

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

0

max_nodes deprecated

integer

No

[Deprecated]

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

null

node_components

array<object>

No

The list of node components.

array<object>

No

The node component.

config

object

No

The node component configuration.

custom_config

object

No

The custom configuration for the node component.

{"cpuManagerPolicy":"static"}

any

No

The custom configuration string for the node component.

cpuManagerPolicy

envs

array<object>

No

The environment variables for 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

name

string

No

The name of the node component.

kubelet

version

string

No

The version of the node component.

1.33.3-aliyun.1

node_config

object

No

The node configuration.

kubelet_configuration kubelet_config

No

The Kubelet parameter settings.

node_os_config

object

No

The operating system configuration for the node.

hugepage

Hugepage

No

The transparent huge page 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

nodepool_info

object

No

The node pool configuration.

name

string

Yes

The name of the node pool.

nodepool-test

resource_group_id

string

No

The ID of the resource group to which the node pool belongs. Instances launched by 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 your business scenarios.

rg-acfmyvw3wjmb****

type

string

No

The type of the node pool. Valid values:

  • ess: standard node pool, which supports managed features and elastic scaling.

  • 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

scaling_group

object

No

The scaling group configuration of the node pool.

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 duration of each auto-renewal. Valid values:

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

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

Default value: 1.

1

cis_enabled deprecated

boolean

No

[Deprecated] Use the security_hardening_os parameter instead.

null

compensate_with_on_demand

boolean

No

Specifies whether to automatically create pay-as-you-go instances to meet the required number of ECS instances when multi_az_policy is set to COST_OPTIMIZED and sufficient spot instances cannot be created due to price or inventory constraints. Valid values:

  • true: automatically creates pay-as-you-go instances to meet the required number of ECS instances.

  • false: does not automatically create pay-as-you-go instances.

true

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.

enabled

data_disks

array

No

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

data_disk

No

The data cloud disk configuration.

deploymentset_id

string

No

The ID of the deployment set. You can use a deployment set to distribute ECS instances created by the node pool across different physical servers to ensure high availability and underlying disaster recovery capabilities. When you create ECS instances in a deployment set, the instances are started in a distributed manner in the specified region 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 up to 20 × the number of zones nodes. The number of zones is determined by the vSwitches. Proceed with caution and ensure that the quota in the deployment set is sufficient to prevent node scale-out failures.

ds-bp1d19mmbsv3jf6xxxxx

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. We recommend that you configure at least two nodes to ensure the normal operation of cluster components. You can scale out or scale in the node pool by adjusting the expected number of nodes.

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

0

disk_init

array

No

The block device initialization configuration.

DiskInit

No

The DiskInit configuration.

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

image_id

string

No

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

aliyun_2_1903_x64_20G_alibase_20200529.vhd

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: WindowsCore image.

  • ContainerOS: container-optimized image.

  • AliyunLinux3ContainerOptimized: Alinux3 container-optimized image.

AliyunLinux3

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

instance_metadata_options InstanceMetadataOptions

No

The instance metadata access configuration for ECS instances.

instance_patterns

array

No

The instance property configuration.

instance_patterns

No

The instance properties.

instance_types

array

Yes

The list of instance types for nodes in the node pool. When the node pool scales out nodes, it selects instance types that meet the requirements from the specified list to create instances.

Valid values for the number of supported instance types: [1,10].

Note

To ensure high availability, we recommend that you select multiple instance types.

string

No

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

ecs.d1ne.2xlarge

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,100].

5

key_pair

string

No

The name of the key pair used for password-free 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_as_non_root

boolean

No

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

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

  • false: logs on as the root user.

true

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 must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

****

multi_az_policy

string

No

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

  • PRIORITY: scales ECS instances based on the vSwitches (VSwitchIds.N) that you specify. If ECS instances cannot be created in the 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: creates ECS instances based on the vCPU unit price in ascending order. If the scaling configuration specifies multiple instance types and the spot instance billing method is used, the system preferentially creates spot instances. You can use the CompensateWithOnDemand parameter to specify whether it is to automatically create pay-as-you-go instances when spot instances cannot be created due to inventory shortages or other reasons.

    Note

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

  • BALANCE: allocates ECS instances evenly across the zones specified in the scaling group. If the zones become unbalanced due to inventory shortages or other reasons, you can call the RebalanceInstances API operation to balance the resources.

Default value: PRIORITY.

COST_OPTIMIZED

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 (on_demand_base_capacity). Valid values: [0,100].

20

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.

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

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

1

period_unit

string

No

The billing cycle 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: week.

Default value: Month.

Month

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

private_pool_options

object

No

The private node pool configuration.

id

string

No

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

eap-bp67acfmxazb4****

match_criteria

string

No

The type of the private node pool and the private pool capacity matching mode for instance startup. After an elasticity assurance or capacity reservation takes effect, a private pool is generated for you to select when you start instances. Valid values:

  • Open: open mode. The system automatically matches the capacity of an open private pool. If no matching private pool capacity is available, the system uses public pool resources to start the instance.

  • Target: 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.

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

Target

ram_role_name

string

No

The name of the worker RAM role.

  • If this parameter is left empty, the default worker RAM role created for the cluster is used.

  • If this parameter is specified, the RAM role must be a normal service role and its trusted service must be set to ECS. For more information, see Create a normal service role. If the specified RAM role is not the default worker RAM role created 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

rds_instances

array

No

The list of ApsaraDB RDS instances.

string

No

The ApsaraDB RDS instance ID.

rds-****

resource_pool_options

object

No

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

private_pool_ids

array

No

The list of private pool IDs, which are the IDs of elasticity assurances or capacity reservations. You can specify only the IDs of private pools in Target mode. Valid values of N: 1 to 20.

string

No

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

eap-bp67acfmxazb4****

strategy

string

No

The resource pool strategy used to create instances. Resource pools include private pools generated after elasticity assurances or capacity reservations take effect, as well as public pools, which are available for selection during instance startup. Valid values: PrivatePoolFirst: Private pool first. If you select this strategy and specify resource_pool_options.private_pool_ids, the specified private pools are used first. If no private pool is specified or the specified private pools have insufficient capacity, open private pools are automatically matched. If no eligible private pool is available, the public pool is used to create instances. PrivatePoolOnly: Private pool only. If you select this strategy, you must specify resource_pool_options.private_pool_ids. If the specified private pools have insufficient capacity, the instance fails to start. None: No resource pool strategy is used. Default value: None.

PrivatePoolFirst

scaling_policy

string

No

The scaling group mode. Valid values:

  • release: Standard mode. Instances are scaled by creating and releasing ECS instances based on the requested resource usage.

  • recycle: Fast mode. Instances are scaled 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

security_group_id deprecated

string

No

The security group ID of the node pool. Specify either this parameter or security_group_ids. We recommend that you use security_group_ids.

sg-wz9a8g2mt6x5llu0****

security_group_ids

array

No

The list of security group IDs. Specify either this parameter or security_group_id. We recommend that you use security_group_ids. If both security_group_id and security_group_ids are specified, security_group_ids takes precedence.

string

No

The list of security group IDs. Specify either this parameter or security_group_id. We recommend that you use security_group_ids. If both security_group_id and security_group_ids are specified, security_group_ids takes precedence.

sg-wz9a8g2mt6x5ll******

security_hardening_os

boolean

No

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

  • true: Enables Alibaba Cloud OS security hardening.

  • false: Does not enable Alibaba Cloud OS security hardening. Default value: false.

false

soc_enabled

boolean

No

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

false

spot_instance_pools

integer

No

The number of available instance types. The scaling group evenly creates spot instances across multiple instance types with the lowest costs. Valid values: 1 to 10.

5

spot_instance_remedy

boolean

No

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

  • true: Enables spot instance replenishment.

  • false: Does not enable spot instance replenishment.

false

spot_price_limit

array<object>

No

The market price range configuration for a single spot 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 spot instance type.

ecs.c6.large

price_limit

string

No

The maximum price per instance.

Unit: USD/hour.

0.39

spot_strategy

string

No

The spot instance strategy. Valid values:

  • NoSpot: Pay-as-you-go instance.

  • SpotWithPriceLimit: Sets the maximum price for spot instances.

  • SpotAsPriceGo: Uses the system automatic bidding strategy, which follows the actual market price. For more information, see Spot instances.

NoSpot

system_disk_bursting_enabled

boolean

No

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

  • true: Yes.

  • false: No. This parameter is supported only when system_disk_category is set to cloud_auto. For more information, see ESSD AutoPL cloud disks.

true

system_disk_categories

array

No

The categories of the system disk. If the system disk cannot be created by using a disk category with a higher priority, the system automatically attempts to use the disk category with the next highest priority.

string

No

The system disk category of the node. Valid values:

  • cloud: Basic cloud disk.

  • cloud_efficiency: Ultra cloud disk.

  • cloud_ssd: Standard SSD.

  • cloud_essd: ESSD.

  • cloud_auto: ESSD AutoPL cloud disk.

  • cloud_essd_entry: ESSD Entry cloud disk.

cloud_essd

system_disk_category

string

No

The system disk category of the node. Valid values:

  • cloud_efficiency: Ultra cloud disk.

  • cloud_ssd: Standard SSD.

  • cloud_essd: ESSD.

  • cloud_auto: ESSD AutoPL cloud disk.

  • cloud_essd_entry: ESSD Entry cloud disk. Default value: cloud_efficiency.

cloud_efficiency

system_disk_encrypt_algorithm

string

No

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

aes-256

system_disk_encrypted

boolean

No

Specifies whether to encrypt the system disk. Valid values:

  • true: Encrypts the system disk.

  • false: Does not encrypt the system disk.

false

system_disk_kms_key_id

string

No

The ID of the KMS key used for the system disk.

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

system_disk_performance_level

string

No

The performance level of the system disk. This parameter is applicable only to ESSDs. The performance level varies based on the disk size. For more information, see ESSD. Valid values:

  • PL0: Medium maximum concurrent I/O performance and relatively stable read/write latency.

  • PL1: Medium maximum concurrent I/O performance and relatively stable read/write latency.

  • PL2: High maximum concurrent I/O performance and stable read/write latency.

  • PL3: Extremely high maximum concurrent I/O performance and highly stable read/write latency.

PL1

system_disk_provisioned_iops

integer

No

The provisioned read/write IOPS for the system disk. Valid values: 0 to min{50,000, 1000 × Capacity - Baseline performance}. Baseline performance = min{1,800 + 50 × Capacity, 50,000}. This parameter is supported only when system_disk_category is set to cloud_auto. For more information, see ESSD AutoPL cloud disks.

1000

system_disk_size

integer

No

The size of the system disk. Unit: GiB. Valid values: 20 to 2048.

120

system_disk_snapshot_policy_id

string

No

The snapshot policy for the system disk.

sp-0jl6xnmme8v7o935****

tags

array<object>

No

The tags to be added 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:, or contain https:// or http://.

object

No

The tag of the node.

key

string

No

The tag key.

node-k-1

value

string

No

The tag value.

node-v-1

vswitch_ids

array

Yes

The list of vSwitch IDs. You can specify 1 to 8 vSwitch IDs.

Note

To ensure high availability, we recommend that you select vSwitches in different zones.

string

No

The vSwitch ID.

vsw-wz9mfnhmssud6eicu****

tee_config

object

No

The confidential computing cluster configuration.

tee_enable

boolean

No

Specifies whether to enable confidential computing for the cluster.

  • true: Enables confidential computing.

  • false: Disables confidential computing.

true

Response elements

Element

Type

Description

Example

object

The node pool configuration.

nodepool_id

string

The ID of the node pool.

np31da1b38983f4511b490fc62108a****

request_id

string

The ID of the request.

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

task_id

string

The ID of the task.

T-613b19bbd160ad492800****

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.