Parameter | Type | Description | Example |
---|---|---|---|
object | Node pools. | ||
auto_scaling | object | The auto scaling configuration of a node pool. | |
enable | boolean | Specifies whether to enable auto scaling for a node pool.
Default value: | true |
max_instances | long | The maximum number of Elastic Compute Service (ECS) instances that can be created in a node pool. | 10 |
min_instances | long | The minimum number of ECS instances that must be kept in a node pool. | 0 |
type | string | The instance types that can be used for the auto scaling of a node pool. Valid values:
Default value: | cpu |
is_bond_eip | boolean | This parameter is deprecated. Specifies whether to associate an EIP with a node pool. Valid values:
Default value: | true |
eip_internet_charge_type | string | This parameter is deprecated. The metering method of the EIP. Valid values:
Default value: PayByBandwidth. | PayByBandwidth |
eip_bandwidth | long | This parameter is deprecated. The maximum bandwidth of the EIP. Unit: Mbit/s. | 5 |
kubernetes_config | object | The configurations of the cluster where the node pool is deployed. | |
cms_enabled | boolean | Specifies whether to install the CloudMonitor agent on ECS nodes. After the CloudMonitor agent is installed on ECS nodes, you can view monitoring information about the instances in the CloudMonitor console. We recommend that you install the CloudMonitor agent. Valid values:
Default value: | true |
cpu_policy | string | The CPU management policy. The following policies are supported if the Kubernetes version of the cluster is 1.12.6 or later.
Default value: | none |
labels | array | The labels of the nodes in a node pool. You can add labels to the nodes in the cluster. | |
tag | The labels that you want to add to nodes. | ||
runtime | string | The container runtime. Valid values:
Default value: | containerd |
runtime_version | string | The version of the container runtime. | 1.6.20 |
taints | array | The configurations of the taints. | |
taint | The configuration of the taint. | ||
user_data | string | The user-defined data on a node. | MXM= |
node_name_mode | string | A custom node name consists of a prefix, a node IP address, and a suffix.
Set the value in the customized,aliyun,ip,com format. The value consists of four parts that are separated by commas (,). customized and ip are fixed content. aliyun is the prefix and com is the suffix. Example: aliyun.192.168.xxx.xxx.com. | customized,aliyun,ip,com |
nodepool_info | object | The configuration of a node pool. | |
name | string | The name of the node pool. | np-test |
resource_group_id | string | The ID of the resource group to which a node pool belongs. | rg-acfmyvw3wjm**** |
type | string | The type of node pool. Valid values:
| ess |
scaling_group | object | The configuration of the scaling group that is used by a node pool. | |
auto_renew | boolean | Specifies whether to enable auto-renewal for a node pool. This parameter takes effect only when
Default value: | false |
auto_renew_period | long | The auto-renewal period for the nodes in a node pool. This parameter takes effect and is required only when If you specify Default value: 1. | 0 |
data_disks | array | The configurations of the data disks that you want to attach to the nodes in a node pool. | |
data_disk | The configurations of the data disks that you want to attach to the nodes in a node pool. | ||
image_id | string | The ID of a custom image. By default, the image provided by ACK is used. | aliyun_2_1903_x64_20G_alibase_20200904.vhd |
instance_charge_type | string | The billing method of the nodes in a node pool. Valid values:
Default value: | PostPaid |
instance_types | array | The instance types. | |
string | The instance type. | ecs.n1.medium | |
key_pair | string | The name of the key pair. You must set this parameter or the Note
If you want to create a managed node pool, you must set key_pair .
| np-key |
login_password | string | The password for SSH logon. You must set this parameter or the | Hello1234 |
period | long | The subscription duration of the nodes in a node pool. This parameter takes effect and is required only when Default value: 1. | 0 |
period_unit | string | The unit of the subscription duration. This parameter is required when Valid value: | Month |
platform | string | The release version of the operating system. Valid values:
Default value: | AliyunLinux |
rds_instances | array | A list of ApsaraDB RDS instances. | |
string | The IDs of ApsaraDB RDS instances. | rm-2zey3t89t6280**** | |
spot_strategy | string | The type of preemptible instance. Valid values:
For more information, see Preemptible instances. | NoSpot |
spot_price_limit | object [] | The instance type for preemptible instances and the price limit of the instance type. | |
instance_type | string | The instance type of preemptible instances. | ecs.c6.large |
price_limit | string | The maximum bid price of a preemptible instance. | 0.39 |
scaling_policy | string | The scaling mode of the scaling group. Valid values:
Default value: | release |
security_group_id | string | Specifies the ID of the security group to which you want to add the node pool. You must set this parameter or | sg-2zeihch86ooz9io4**** |
security_group_ids | array | Specifies the IDs of security groups to which you want to add the node pool. You must set this parameter or | |
string | The ID of the security group. | sg-2zeihch86ooz9io4**** | |
system_disk_category | string | The type of system disk. Valid values:
Default value: | cloud_efficiency |
system_disk_size | long | The size of a system disk. Unit: GiB. Valid values: 40 to 500. | 120 |
system_disk_performance_level | string | The performance level (PL) of the system disk that you want to use for the node. This parameter takes effect only for ESSDs.
| PL1 |
system_disk_provisioned_iops | long | The predefined IOPS of a system disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Baseline IOPS}. Baseline IOPS = min{1,800 + 50 × Capacity, 50,000}. This parameter is supported only when | 1000 |
system_disk_bursting_enabled | boolean | Specifies whether to enable the burst feature for system disks. Valid values:
This parameter is supported only when | true |
tags | object [] | The labels that you want to add to the ECS instances. Each key must be unique and cannot exceed 128 characters in length. Neither keys nor values can start with aliyun or acs:. Neither keys nor values can contain https:// or http://. | |
key | string | The key of the label. | |
value | string | The value of the label. | |
vswitch_ids | array | The vSwitch IDs. | |
string | The vSwitch ID. | vsw-2ze0fmpbwo140ahni**** | |
multi_az_policy | string | The ECS instance scaling policy for a multi-zone scaling group. Valid values:
Default value: | COST_OPTIMIZED |
on_demand_base_capacity | long | The minimum number of pay-as-you-go instances that must be kept in the scaling group. Valid values: 0 to 1000. If the number of pay-as-you-go instances is less than the value of this parameter, Auto Scaling preferably creates pay-as-you-go instances. | 0 |
on_demand_percentage_above_base_capacity | long | The percentage of pay-as-you-go instances among the extra instances that exceed the number specified by | 20 |
spot_instance_pools | long | The number of instance types that are available for creating preemptible instances. Auto Scaling creates preemptible instances of multiple instance types that are available at the lowest cost. Valid values: 1 to 10. | 5 |
spot_instance_remedy | boolean | Specifies whether to supplement preemptible instances. If this parameter is set to true, when the scaling group receives a system message that a preemptible instance is to be reclaimed, the scaling group attempts to create a new instance to replace this instance. Valid values:
| false |
compensate_with_on_demand | boolean | Specifies whether to automatically create pay-as-you-go instances to meet the required number of ECS instances if preemptible instances cannot be created due to reasons such as the cost or insufficient inventory. This parameter takes effect when you set
| true |
internet_charge_type | string | The metering method of the public IP address. Valid values:
| PayByBandwidth |
internet_max_bandwidth_out | long | The maximum outbound bandwidth of the public IP address of the node. Unit: Mbit/s. Valid values: 1 to 100. | 10 |
image_type | string | The type of OS image. Configure this parameter or the platform parameter. Valid values:
| AliyunLinux |
deploymentset_id | string | The ID of the deployment set. | ds-bp1d19mmbsv3jf6xxxxx |
desired_size | long | The expected number of nodes in the node pool. | 2 |
private_pool_options | object | The configuration of the private node pool. | |
id | string | The ID of the private node pool. | eap-bp67acfmxazb4**** |
match_criteria | string | The type of private node pool. This parameter specifies the type of private node pool that you want to use to create instances. A private node pool is generated when an elasticity assurance or a capacity reservation service takes effect. The system selects a private node pool to launch instances. Valid values:
| Open |
tee_config | object | The configuration of confidential computing. | |
tee_enable | boolean | Specifies whether to enable confidential computing for the node pool. | false |
management | object | The configuration of the managed node pool feature. | |
enable | boolean | Specifies whether to enable the managed node pool feature. Valid values:
| false |
auto_repair | boolean | Specifies whether to enable auto repair. This parameter takes effect only when you specify
| false |
upgrade_config | object | The configuration of auto update. The configuration take effects only when | |
auto_upgrade | boolean | Specifies whether to enable auto update. Valid values:
| false |
surge | long | The number of additional nodes. | 0 |
surge_percentage | long | The percentage of additional nodes to the nodes in the node pool. You must set this parameter or | 0 |
max_unavailable | long | The maximum number of nodes that can be in the Unavailable state. Valid values: 1 to 1000. Default value: 1. | |
count | long | This parameter is deprecated. Use the desired_size parameter instead. The number of nodes in the node pool. | 1 |
interconnect_mode | string | The network type of the edge node pool. This parameter takes effect only when you set the
| basic |
interconnect_config | object | This parameter is deprecated. The configurations of the edge node pool. | |
cen_id | string | This parameter is deprecated. The ID of the Cloud Enterprise Network (CEN) instance that is associated with the enhanced edge node pool. | cen-ey9k9nfhz0f******* |
ccn_id | string | This parameter is deprecated. The ID of the Cloud Connect Network (CCN) instance that is associated with the enhanced edge node pool. | ccn-qm5i0i0q9yi******* |
ccn_region_id | string | This parameter is deprecated. The region to which the CCN instance that is associated with the enhanced edge node pool belongs. | cn-shanghai |
bandwidth | long | This parameter is deprecated. The bandwidth of the enhanced edge node pool. Unit: Mbit/s. | 10 |
improved_period | string | This parameter is deprecated. The subscription duration of the enhanced edge node pool. The duration is measured in months. | 1 |
max_nodes | long | The maximum number of nodes supported by an edge node pool. The value must be equal to or greater than 0. A value of 0 indicates that the number of nodes in the node pool is limited only by the quota of nodes in the cluster. In most cases, this parameter is set to a value larger than 0 for edge node pools. This parameter is set to 0 for node pools whose types are ess or default edge node pools. | 10 |