|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The node pool. |
||
| auto_scaling |
object |
The auto scaling node pool configuration. |
|
| enable |
boolean |
Specifies whether to enable auto scaling.
Default value: |
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:
Default value: |
cpu |
| is_bond_eip |
boolean |
[Deprecated] Specifies whether to associate an EIP. Valid values:
Default value: |
true |
| eip_internet_charge_type |
string |
[Deprecated] The billing method of the EIP. Valid values:
Default value: PayByBandwidth. |
PayByBandwidth |
| eip_bandwidth |
integer |
[Deprecated] The peak bandwidth of the EIP. Unit: Mbit/s. |
5 |
| kubernetes_config |
object |
The cluster-related configuration. |
|
| cms_enabled |
boolean |
Specifies whether to install the CloudMonitor agent on ECS nodes. After installation, you can view monitoring information about the created ECS instances in the CloudMonitor console. We recommend that you enable this feature. Valid values:
Default value: |
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:
Default value: |
none |
| labels |
array |
The node labels. Adds labels to Kubernetes cluster nodes. |
|
| tag |
The node label. |
||
| runtime |
string |
The container runtime. Valid values:
Default value: |
containerd |
| runtime_version |
string |
The container runtime version. |
1.6.20 |
| taints |
array |
The taint configuration. |
|
| taint |
The taint configuration. |
||
| user_data |
string |
The node custom data. |
MXM= |
| node_name_mode |
string |
The node name consists of three parts: prefix + node IP + suffix:
The parameter contains four parts separated by commas. For example, if you pass in 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 |
The node pool configuration. |
|
| 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 |
| scaling_group |
object |
The scaling group configuration for the node pool. |
|
| auto_renew |
boolean |
Specifies whether to enable auto-renewal for the node pool. This parameter takes effect only when
Default value: |
false |
| auto_renew_period |
integer |
The auto-renewal epoch of the node pool. This parameter takes effect and is required only when When 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. The system-provided image is used by default. |
aliyun_2_1903_x64_20G_alibase_20200904.vhd |
| instance_charge_type |
string |
The billing method for nodes in the node pool. Valid values:
Default value: |
PostPaid |
| instance_types |
array |
The instance types. |
|
|
string |
The instance types. |
ecs.n1.medium |
|
| key_pair |
string |
The key pair name. Mutually exclusive with Note
If you create a managed node pool, only |
np-key |
| login_password |
string |
The SSH logon password. Mutually exclusive with |
Hello1234 |
| login_as_non_root |
boolean |
Specifies whether the scaled-out ECS instance uses a non-root user for logon. |
|
| period |
integer |
The subscription duration for nodes in the node pool. This parameter takes effect and is required only when Default value: 1. |
0 |
| period_unit |
string |
The billing period unit for nodes in the node pool. This parameter must be specified when
|
Month |
| platform |
string |
The operating system distribution. Valid values:
Default value: |
AliyunLinux |
| instance_patterns |
array |
The instance attributes. |
|
| instance_patterns | |||
| rds_instances |
array |
The list of RDS instances. |
|
|
string |
The RDS instance ID. |
rm-2zey3t89t6280**** |
|
| spot_strategy |
string |
The type of spot instance. Valid values:
For more information, see Spot instances. |
NoSpot |
| spot_price_limit |
array |
The price range configurations for a single spot instance of the current instance type. |
|
|
object |
|||
| instance_type |
string |
The spot instance type. |
ecs.c6.large |
| price_limit |
string |
The maximum price for a single instance. |
0.39 |
| scaling_policy |
string |
The scaling group pattern. Valid values:
Default value: |
release |
| security_group_id |
string |
The security group ID of the node pool. Specify either this parameter or |
sg-2zeihch86ooz9io4**** |
| security_group_ids |
array |
The list of security group IDs. Specify either this parameter or |
|
|
string |
The security group ID. |
sg-2zeihch86ooz9io4**** |
|
| system_disk_category |
string |
The type of the node system cloud disk. Valid values:
Default value: |
cloud_efficiency |
| system_disk_categories |
array |
Multiple disk types for the system cloud disk. When a higher-priority disk type is unavailable, the system automatically attempts the next-priority disk type to create the system cloud disk. Valid values:
|
|
|
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 disks.
|
PL1 |
| system_disk_encrypted |
boolean |
Specifies whether to encrypt the system cloud disk. Valid values: true: encrypt. false: do not encrypt. |
|
| system_disk_kms_key_id |
string |
The KMS key ID used for the node system cloud disk. |
0e478b7a-4262-4802-b8cb-00d3fb40**** |
| system_disk_encrypt_algorithm |
string |
The encryption algorithm used for the node system cloud disk. Valid values: aes-256. |
aes-256 |
| system_disk_provisioned_iops |
integer |
The provisioned read/write IOPS for the node system cloud disk. Valid values: 0~min{50,000, 1000*capacity-baseline performance}. Baseline performance=min{1,800+50*capacity, 50000}. This parameter is supported only when |
1000 |
| system_disk_bursting_enabled |
boolean |
Specifies whether to enable burst (performance bursting) for the node system cloud disk. Valid values:
This parameter is supported only when |
true |
| tags |
array |
Tags added only to ECS instances. Tag keys cannot be duplicated and have a maximum length of 128 characters. Tag keys and tag values cannot start with "aliyun" or "acs:", or contain "https://" or "http://". |
|
|
object |
|||
| key |
string |
The tag key. |
key |
| value |
string |
The tag value. |
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:
Default value: |
COST_OPTIMIZED |
| on_demand_base_capacity |
integer |
The minimum number of pay-as-you-go instances required in the scaling group. Valid values: [0,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 instances that exceed the minimum number of pay-as-you-go instances ( |
20 |
| spot_instance_pools |
integer |
The number of available instance types. The scaling group creates spot instances across multiple types with the lowest cost. Valid values: [1,10]. |
5 |
| spot_instance_remedy |
boolean |
Specifies whether to enable supplementing spot instances. When enabled, the scaling group attempts to create new instances to replace spot instances that are about to be reclaimed. Valid values:
|
false |
| compensate_with_on_demand |
boolean |
When
|
true |
| internet_charge_type |
string |
The billing type for public IP addresses. Valid values:
|
PayByBandwidth |
| internet_max_bandwidth_out |
integer |
The maximum outbound bandwidth for node public IP. Unit: Mbps (Mega bit per second). Valid values: [1,100]. |
10 |
| image_type |
string |
The operating system image type. Specify either this parameter or the platform parameter. Valid values:
|
AliyunLinux |
| deploymentset_id |
string |
The deployment set ID. |
ds-bp1d19mmbsv3jf6xxxxx |
| desired_size |
integer |
The desired number of nodes in the node pool. |
2 |
| private_pool_options |
object |
The private node pool configuration. |
|
| id |
string |
The private node pool ID. |
eap-bp67acfmxazb4**** |
| match_criteria |
string |
The private node pool type. This specifies the private pool capacity option for instance startup. After an elasticity assurance or capacity reservation takes effect, a private pool is generated for instance startup. Valid values:
|
Open |
| ram_role_name |
string |
The Worker RAM role name. Important Only ACK managed clusters of version 1.22 or later support configuring this parameter when creating 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. Note the following when you set this parameter: This parameter takes effect only when creating pay-as-you-go instances. This parameter cannot be set together with private_pool_options.match_criteria or private_pool_options.id. |
|
| strategy |
string |
The resource pool policy used when creating instances. Resource pools include private pools generated after an elasticity assurance or capacity reservation takes effect, and public pools, for instance startup. Valid values: PrivatePoolFirst: private pool first. When this policy is selected and resource_pool_options.private_pool_ids is specified, the specified private pools are used first. If no private pool is specified or the specified private pool capacity is insufficient, open-type private pools are automatically matched. If no matching private pool is available, public pool resources are used to create instances. PrivatePoolOnly: private pool only. When this policy is selected, resource_pool_options.private_pool_ids must be specified. If the specified private pool capacity is insufficient, the instance fails to start. None: do not use a resource pool policy. Default value: None. |
PrivatePoolFirst |
| private_pool_ids |
array |
The list of private pool IDs, which are elasticity assurance IDs or capacity reservation IDs. Only Target mode private pool IDs can be specified. Valid values of N: 1 to 20. |
|
|
string |
The private pool ID, which is the ID of the elasticity assurance or capacity reservation. Only private pool IDs in Target mode can be specified for this parameter. |
eap-bp67acfmxazb4**** |
|
| cpu_options |
object |
The CPU configuration options. |
|
| nested_virtualization |
string |
Specifies whether to enable nested virtualization. Valid values: disabled: disables nested virtualization. enabled: enables nested virtualization. |
enabled |
| tee_config |
object |
The confidential computing node pool configuration. |
|
| tee_enable |
boolean |
Specifies whether the node pool is a confidential computing node pool. |
false |
| management |
object |
The managed node pool configuration. |
|
| enable |
boolean |
Specifies whether to enable the managed node pool. Valid values:
|
false |
| auto_repair |
boolean |
Specifies whether to enable auto repair. This parameter takes effect only when
|
false |
| upgrade_config |
object |
The auto upgrade configuration. This parameter takes effect only when |
|
| auto_upgrade |
boolean |
Specifies whether to enable auto upgrade. Valid values:
|
false |
| surge |
integer |
The number of extra nodes. |
0 |
| surge_percentage |
integer |
The percentage of extra nodes. This parameter is mutually exclusive with |
0 |
| max_unavailable |
integer |
The maximum number of unavailable nodes. Valid values: [1,1000]. Default value: 1. |
0 |
| auto_repair_policy |
object |
The auto repair node policy. |
|
| restart_node |
boolean |
Specifies whether to allow node restart. |
true |
| max_parallel_repairing_nodes |
string |
The maximum number of nodes that can be repaired in parallel. 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 simultaneously. 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 |
The self-healing circuit breaker threshold. When the number or percentage of faulty nodes exceeds this threshold, self-healing enters a circuit breaker state and stops initiating new 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 |
Specifies whether to automatically fix CVEs. |
true |
| auto_vul_fix_policy |
object |
The auto CVE fix policy. |
|
| restart_node |
boolean |
Specifies whether to allow node restart. |
true |
| vul_level |
string |
The vulnerability levels that are allowed for automatic fix, separated by commas. |
asap,nntf |
| auto_upgrade |
boolean |
Specifies whether to enable auto upgrade. |
true |
| auto_upgrade_policy |
object |
The auto upgrade policy. |
|
| auto_upgrade_kubelet |
boolean |
Specifies whether to allow automatic kubelet upgrade. |
true |
| auto_fault_diagnosis |
boolean |
Specifies whether to enable ECS fault detection for node self-healing. |
|
| drift_enabled |
boolean |
Specifies whether to enable node rotation. Only intelligent managed node pools support this feature, and it is enabled by default. Common node pools do not support this feature. |
|
| count |
integer |
[Deprecated] Use desired_size instead. The number of nodes in the node pool. |
1 |
| interconnect_mode |
string |
The network type of the edge node pool. This parameter is valid only for node pools whose
|
basic |
| interconnect_config |
object |
[Deprecated] The edge node pool configuration. |
|
| cen_id |
string |
[Deprecated] The instance ID of the Cloud Enterprise Network (CEN) attached to the enhanced edge node pool. |
cen-ey9k9nfhz0f******* |
| ccn_id |
string |
[Deprecated] The instance ID of the Cloud Connect Network (CCN) attached to the enhanced edge node pool. |
ccn-qm5i0i0q9yi******* |
| ccn_region_id |
string |
[Deprecated] The region of the Cloud Connect Network (CCN) instance bound to the enhanced edge node pool. |
cn-shanghai |
| bandwidth |
integer |
[Deprecated] The network bandwidth of the enhanced edge node pool. Unit: Mbps. |
10 |
| improved_period |
string |
[Deprecated] The purchase duration of the enhanced edge node pool. Unit: months. |
1 |
| max_nodes |
integer |
The maximum number of nodes that the edge node pool can contain. This parameter must be greater than or equal to 0. A value of 0 indicates no additional limit (limited only by the maximum number of nodes the cluster can contain, with no additional limit on the node pool itself). This parameter is typically greater than 0 for edge node pools. For ess-type node pools and default edge-type node pools, this parameter is 0. |
10 |
| node_config |
object |
The node configuration. |
|
| kubelet_configuration | kubelet_config |
The Kubelet parameter settings. |
|
| node_components |
array |
The list of node components. |
|
|
object |
The node component. |
||
| name |
string |
The name of the node component. |
kubelet |
| version |
string |
The node component version. |
1.33.3-aliyun.1 |
| config |
object |
The node component configuration. |
|
| custom_config |
object |
The node component custom configuration. |
{"cpuManagerPolicy":"static"} |
|
any |
The node component custom configuration string. |
cpuManagerPolicy |
|
| envs |
array |
The node component environment variables. |
|
|
object |
|||
| name |
string |
The environment variable name. |
LOG_LEVEL |
| value |
string |
The environment variable value. |
info |