すべてのプロダクト
Search
ドキュメントセンター

Container Service for Kubernetes:nodepool

最終更新日:Jun 25, 2026

パラメーター

タイプ

説明

object

ノードプール。

auto_scaling

object

ノードプールの auto scaling スケーリング設定。

enable

boolean

Specifies whether to enable auto scaling.

  • true: Enables the auto scaling feature for the node pool.

  • false: Disables auto scaling. If this parameter is set to false, other configuration parameters in auto_scaling do not take effect.

Default value: false.

true

max_instances

integer

The maximum number of instances in the auto scaling group.

10

min_instances

integer

The minimum number of instances in the auto scaling group.

0

type

string

The auto scaling type, classified by instance type. Valid values:

  • cpu: regular instance type.

  • gpu: GPU instance type.

  • gpushare: GPU sharing type.

  • spot: spot instance type.

Default value: cpu.

cpu

is_bond_eip

boolean

[This field is deprecated].

Specifies whether to associate an EIP. Valid values:

  • true: Associates an EIP.

  • false: Does not associate an EIP.

Default value: false.

true

eip_internet_charge_type

string

[This field is deprecated].

The billing method of the EIP. Valid values:

  • PayByBandwidth: pay-by-bandwidth.

  • PayByTraffic: pay-by-traffic.

Default value: PayByBandwidth.

PayByBandwidth

eip_bandwidth

integer

[This field is deprecated]

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

5

kubernetes_config

object

クラスター関連の構成。

cms_enabled

boolean

Specifies whether to install the CloudMonitor agent on ECS nodes. After installation, you can view monitoring information of the created ECS instances in the CloudMonitor console. We recommend that you enable this feature. Valid values:

  • true: Installs the CloudMonitor agent on ECS nodes.

  • false: Does not install the CloudMonitor agent on ECS nodes.

Default value: false.

true

cpu_policy

string

The CPU management policy for nodes. The following two policies are supported for clusters of version 1.12.6 or later:

  • static: allows pods with certain resource characteristics on the node to be granted enhanced CPU affinity and exclusivity.

  • none: uses the existing default CPU affinity scheme.

Default value: none.

none

labels

array

The node labels. Adds labels to Kubernetes cluster nodes.

tag

The node label.

runtime

string

The container runtime. Valid values:

  • containerd: recommended. Supports all cluster versions.

  • Sandboxed-Container.runv: sandboxed container that provides higher isolation. Supports clusters of version 1.24 or earlier.

  • docker: supports clusters of version 1.22 or earlier.

Default value: containerd.

containerd

runtime_version

string

The container runtime version.

1.6.20

taints

array

The taint configurations.

taint

The taint configurations.

user_data

string

The custom data for nodes.

MXM=

node_name_mode

string

A node name consists of three parts: prefix + node IP + suffix:

  • The prefix and suffix can each contain one or more parts separated by periods (.). Each part can contain lowercase letters, digits, and hyphens (-). The node name must start and end with a lowercase letter or digit.

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

The parameter contains four parts separated by commas. For example, if you pass the string "customized,aliyun,ip,com" (where "customized" and "ip" are fixed strings, "aliyun" is the prefix, and "com" is the suffix), the node name is aliyun.192.168.xxx.xxx.com.

customized,aliyun,ip,com

nodepool_info

object

ノードプールの構成。

name

string

The node pool name.

np-test

resource_group_id

string

The ID of the resource group to which the node pool belongs.

rg-acfmyvw3wjm****

type

string

The node pool type. Valid values:

  • ess: regular node pool.

  • edge: edge node pool.

ess

scaling_group

object

ノードプールのスケーリンググループ構成。

auto_renew

boolean

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

  • true: Auto-renewal is enabled.

  • false: Auto-renewal is disabled.

Default value: true.

false

auto_renew_period

integer

The auto-renewal epoch of the node pool. This parameter takes effect and is required only when instance_charge_type is set to PrePaid.

When PeriodUnit=Month, valid values: {1, 2, 3, 6, 12}.

Default value: 1.

0

data_disks

array

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

data_disk

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

disk_init

array

The block device initialization configuration.

DiskInit

The DiskInit configuration.

image_id

string

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

aliyun_2_1903_x64_20G_alibase_20200904.vhd

instance_charge_type

string

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

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

Default value: PostPaid.

PostPaid

instance_types

array

The instance types.

string

The instance types.

ecs.n1.medium

key_pair

string

The key pair name. Specify either this parameter or login_password.

説明

If you create a managed node pool, only key_pair is supported.

np-key

login_password

string

The SSH logon password. 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.

Hello1234

login_as_non_root

boolean

Specifies whether to log on to the scaled-out ECS instance as a non-root user.

period

integer

The subscription duration of 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 Month, valid values of period: {1, 2, 3, 6, 12}.

Default value: 1.

0

period_unit

string

The unit of the subscription period for nodes in the node pool. This parameter must be specified when instance_charge_type is set to PrePaid.

Month: Currently, only monthly billing is supported.

Month

platform

string

The operating system distribution. Valid values:

  • CentOS

  • AliyunLinux

  • Windows

  • WindowsCore

Default value: AliyunLinux.

AliyunLinux

rds_instances

array

The list of ApsaraDB RDS instances.

string

The instance ID of the ApsaraDB RDS instance.

rm-2zey3t89t6280****

spot_strategy

string

The type of spot instance. Valid values:

  • NoSpot: non-spot instance.

  • SpotWithPriceLimit: spot instance with a price limit.

  • SpotAsPriceGo: spot instance priced at the market price at the time of purchase.

For more information, see Spot instances.

NoSpot

spot_price_limit

array

The price limit configurations for a single spot instance of the current instance type.

object

instance_type

string

プリエンプティブルインスタンスタイプ。

ecs.c6.large

price_limit

string

インスタンスあたりの最大価格。

0.39

scaling_policy

string

The scaling group mode. Valid values:

  • release: Standard mode. ECS instances are created and released based on resource usage.

  • recycle: Swift mode. ECS instances are created, stopped, and restarted for scaling, which accelerates subsequent scaling operations. Stopped instances are not charged for compute resources. Only storage fees are charged, except for instances with local disks.

Default value: release.

release

security_group_id

string

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

security_group_ids

array

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

The security group ID.

sg-2zeihch86ooz9io4****

system_disk_category

string

The type of the node system cloud disk. Valid values:

  • cloud_efficiency: ultra cloud disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: ESSD cloud disk.

  • cloud_auto: ESSD AutoPL cloud disk.

  • cloud_essd_entry: ESSD Entry disk.

Default value: cloud_efficiency.

cloud_efficiency

system_disk_categories

array

Multiple cloud disk types for the system cloud disk. If the highest-priority cloud disk type is unavailable, the system automatically attempts the next-priority cloud disk type. Valid values:

  • cloud: basic cloud disk.

  • cloud_efficiency: ultra cloud disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: ESSD.

string

The type of the node system cloud disk.

cloud_essd

system_disk_size

integer

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

Valid values: [40,500].

120

system_disk_performance_level

string

The performance level of the node system cloud disk. This parameter takes effect only for ESSD cloud disks.

  • PL0: moderate maximum concurrent I/O performance with relatively stable read/write latency.

  • PL1: moderate maximum concurrent I/O performance with relatively stable read/write latency.

  • PL2: high maximum concurrent I/O performance with stable read/write latency.

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

PL1

system_disk_encrypted

boolean

Specifies whether to encrypt the system cloud disk. Valid values: true: Encrypted. false: Not encrypted.

system_disk_kms_key_id

string

The KMS key ID used by the node system cloud disk.

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

system_disk_encrypt_algorithm

string

The encryption algorithm used for the system cloud disk of a node. Valid values: aes-256.

aes-256

system_disk_provisioned_iops

integer

The provisioned read/write IOPS of the system cloud disk of a node. 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 SystemDiskCategory is set to cloud_auto. For more information, see ESSD AutoPL cloud disks.

1000

system_disk_bursting_enabled

boolean

Specifies whether to enable burst (performance bursting) for the system cloud disk of a node. Valid values:

  • true: Enable burst.

  • false: Disable burst.

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

true

tags

array

The tags that are added only to ECS instances.

Tag keys cannot be duplicated 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

key

string

タグキー。

key

value

string

タグ値。

value

vswitch_ids

array

The vSwitch IDs.

string

The vSwitch IDs.

vsw-2ze0fmpbwo140ahni****

multi_az_policy

string

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

  • PRIORITY: Scales instances based on the vSwitches (VSwitchIds.N) that you define. When 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: Attempts to create instances in ascending order of vCPU unit price. When the scaling configuration sets multiple instance types with the spot billable methods, spot instances are created first. You can use the CompensateWithOnDemand parameter to specify whether the system is allowed to automatically attempt to create pay-as-you-go instances when spot instances cannot be created due to insufficient inventory or other reasons.

    説明

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

  • BALANCE: Evenly distributes ECS instances across the multiple zones specified in the scaling group. If the zones become unbalanced due to insufficient inventory or other reasons, you can call the RebalanceInstances operation to rebalance resources. For more information, see RebalanceInstances.

Default value: PRIORITY.

COST_OPTIMIZED

on_demand_base_capacity

integer

The minimum number of pay-as-you-go instances required in the scaling group. Valid values: 0 to 1000. When the number of pay-as-you-go instances is less than this value, pay-as-you-go instances are created first.

0

on_demand_percentage_above_base_capacity

integer

The percentage of pay-as-you-go instances among the excess instances after the minimum number of pay-as-you-go instances (on_demand_base_capacity) is met. Valid values: 0 to 100.

20

spot_instance_pools

integer

The number of available instance types. The scaling group creates spot instances of multiple types at the lowest cost. Valid values: 1 to 10.

5

spot_instance_remedy

boolean

Specifies whether to enable supplementation of spot instances. If enabled, the scaling group attempts to create new instances to replace spot instances that are about to be reclaimed when the system sends a reclamation notification. Valid values:

  • true: Enable supplementation of spot instances.

  • false: Disable supplementation of spot instances.

false

compensate_with_on_demand

boolean

When multi_az_policy is set to COST_OPTIMIZED, specifies whether to allow automatic creation of pay-as-you-go instances to meet the required number of ECS instances when spot instances cannot be created due to cost, inventory, or other reasons. Valid values:

  • true: Allowed.

  • false: Not allowed.

true

internet_charge_type

string

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

  • PayByBandwidth: billed on a fixed-bandwidth basis.

  • PayByTraffic: billed on a pay-by-data-transfer basis.

PayByBandwidth

internet_max_bandwidth_out

integer

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

10

image_type

string

The operating system image type. Specify either this parameter or the platform parameter. Valid values:

  • AliyunLinux: Alinux 2 image.

  • AliyunLinux3: Alinux 3 image.

  • AliyunLinux3Arm64: Alinux 3 ARM image.

  • AliyunLinuxUEFI: Alinux 2 UEFI image.

  • CentOS: CentOS image.

  • Windows: Windows image.

  • WindowsCore: Windows Core image.

  • ContainerOS: container-optimized image.

AliyunLinux

deploymentset_id

string

The ID of the deployment set.

ds-bp1d19mmbsv3jf6xxxxx

desired_size

integer

The desired number of nodes in the node pool.

2

private_pool_options

object

The private pool configuration.

id

string

プライベートプールID。

eap-bp67acfmxazb4****

match_criteria

string

プライベートプールタイプ。インスタンス起動用のプライベートプール容量オプション。エラスティシティ保証またはキャパシティ予約が有効になると、インスタンス起動用のプライベートプールが生成されます。有効な値:

  • Open:オープンモード。オープンタイプのプライベートプール容量を自動的にマッチングします。一致するプライベートプール容量がない場合、パブリックプールリソースがインスタンス起動に使用されます。

  • Target:ターゲットモード。指定されたプライベートプール容量を使用してインスタンスを起動します。指定されたプライベートプール容量が利用できない場合、インスタンスの起動は失敗します。

  • None:使用しないモード。インスタンス起動にプライベートプール容量を使用しません。

Open

ram_role_name

string

The name of the worker RAM role.

重要 Only ACK managed clusters of version 1.22 or later support this parameter when you create a node pool.
.

example-role

instance_metadata_options InstanceMetadataOptions

The metadata access configuration for ECS instances. This parameter is currently available only to users in the whitelist. Submit a ticket to request access.

resource_pool_options

object

The resource pool and resource pool policy used when creating instances. After you set this parameter, note the following: This parameter takes effect only when you create pay-as-you-go instances. This parameter cannot be set together with private_pool_options.match_criteria or private_pool_options.id.

strategy

string

インスタンス作成に使用するリソースプールポリシー。リソースプールには、エラスティシティ保証またはキャパシティ予約サービスによって生成されたプライベートプールと、インスタンス起動に利用可能なパブリックプールが含まれます。有効な値: PrivatePoolFirst:プライベートプール優先。この戦略を選択した場合、resource_pool_options.private_pool_idsが指定されていると、指定されたプライベートプールが最初に使用されます。プライベートプールが指定されていない場合、またはプライベートプールの容量が不足している場合、オープンタイプのプライベートプールが自動的にマッチングされます。一致するプライベートプールがない場合、パブリックプールリソースがインスタンス作成に使用されます。 PrivatePoolOnly:プライベートプールのみ。この戦略を選択した場合、resource_pool_options.private_pool_idsを指定する必要があります。指定されたプライベートプールの容量が不足している場合、インスタンスの起動は失敗します。 None:リソースプールポリシーを使用しない。 デフォルト値:None。

PrivatePoolFirst

private_pool_ids

array

プライベートプールIDのリスト。つまり、エラスティシティ保証サービスIDまたはキャパシティ予約サービスIDです。TargetモードのプライベートプールIDのみを指定できます。Nの有効な値:1~20。

string

プライベートプールID。つまり、エラスティシティ保証サービスIDまたはキャパシティ予約サービスIDです。TargetモードのプライベートプールIDのみを指定できます。

eap-bp67acfmxazb4****

tee_config

object

ノードプールの機密コンピューティング構成。

tee_enable

boolean

Specifies whether the node pool is a confidential computing node pool.

false

management

object

マネージドノードプールの構成。

enable

boolean

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

  • true: Enables the managed node pool.

  • false: Does not enable the managed node pool. Other related configurations take effect only when enable=true.

false

auto_repair

boolean

Specifies whether to enable automatic repair. This parameter takes effect only when enable=true.

  • true: Enables automatic repair.

  • false: Does not enable automatic repair.

false

upgrade_config

object

The automatic upgrade configuration. This parameter takes effect only when enable=true.

auto_upgrade

boolean

自動アップグレードを有効にするかどうか。有効な値:

  • true:自動アップグレードを有効にします。

  • false:自動アップグレードを無効にします。

false

surge

integer

追加ノードの数。

0

surge_percentage

integer

追加ノードの割合。surgeとは相互排他的です。

0

max_unavailable

integer

利用不可ノードの最大数。有効な値:[1,1000]。

デフォルト値:1。

0

auto_repair_policy

object

The automatic node repair policy.

restart_node

boolean

ノードの再起動を許可するかどうか。

true

auto_vul_fix

boolean

Specifies whether to automatically fix CVEs.

true

auto_vul_fix_policy

object

The automatic CVE fix policy.

restart_node

boolean

ノードの再起動を許可するかどうか。

true

vul_level

string

自動修正が許可される脆弱性レベル。カンマ区切り。

asap,nntf

auto_upgrade

boolean

Specifies whether to enable auto upgrade.

true

auto_upgrade_policy

object

The auto upgrade policy.

auto_upgrade_kubelet

boolean

kubeletの自動アップグレードを許可するかどうか。

true

auto_fault_diagnosis

boolean

count

integer

このパラメーターは非推奨です。代わりに desired_size を使用してください。

ノードプール内のノード数。

1

interconnect_mode

string

エッジノードプールのネットワークタイプ。このパラメーターは typeedge のノードプールにのみ有効です。有効な値:

  • basic: basic。

  • private: 非公開。バージョン 1.22 以降でサポートされています。

basic

interconnect_config

object

このパラメーターは非推奨です。

エッジノードプールの構成。

cen_id

string

This field is deprecated.

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

cen-ey9k9nfhz0f*******

ccn_id

string

This field is deprecated.

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

ccn-qm5i0i0q9yi*******

ccn_region_id

string

This field is deprecated.

The region of the CCN instance associated with the enhanced edge node pool.

cn-shanghai

bandwidth

integer

This field is deprecated.

The network bandwidth of the enhanced edge node pool. Unit: Mbps.

10

improved_period

string

This field is deprecated.

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

1

max_nodes

integer

エッジノードプールで許可されるノードの最大数。このパラメーターは 0 以上である必要があります。0 の値は追加の制限がないことを示します。ノードプールはクラスターが含むことができるノードの最大数によってのみ制限されます。エッジノードプールは通常 0 より大きい値を持ちます。ESS タイプのノードプールおよびデフォルトのエッジタイプのノードプールは 0 の値を持ちます。

10

node_config

object

ノードの構成。

kubelet_configuration kubelet_config

The kubelet parameter settings.

node_components

array

ノードコンポーネントのリスト。

object

The node component.

name

string

The node component name.

kubelet

version

string

The node component version.

1.33.3-aliyun.1

config

object

The node component configuration.

custom_config

object

ノードコンポーネントのカスタム設定。

{"cpuManagerPolicy":"static"}

any

ノードコンポーネントのカスタム設定文字列。

cpuManagerPolicy