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
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:CreateClusterNodePool |
create |
*Cluster
|
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:
Valid values:
|
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:
If this parameter is set to false, other configuration parameters in auto_scaling do not take effect. Default value: |
false |
| type |
string |
No |
The instance type for elastic scaling. This parameter takes effect only when enable is set to true. Valid values:
Default value: Important This field cannot be modified after the node pool is created. Valid values:
|
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
|
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 |
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:
Default value: |
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:
Default value: |
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:
Default value: false. |
false |
| auto_repair |
boolean |
No |
Specifies whether to automatically repair nodes. This parameter takes effect only when
Default value: |
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
Default value: |
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
Default value: |
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
Default value: |
false |
| vul_level |
string |
No |
The vulnerability levels that are allowed for auto repair, separated by commas. Example:
Default value: |
asap,nntf |
| exclude_packages |
string |
No |
The packages to be excluded during vulnerability repair. Default value: |
kernel |
| auto_upgrade |
boolean |
No |
Specifies whether to automatically upgrade nodes. This parameter takes effect only when
Default value: |
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
Default value: |
true |
| auto_upgrade_runtime |
boolean |
No |
Specifies whether to allow automatic runtime upgrades. This parameter takes effect only when
Default value: |
false |
| auto_upgrade_os |
boolean |
No |
Specifies whether to allow automatic operating system upgrades. This parameter takes effect only when
Default value: |
false |
upgrade_config
deprecated
|
object |
No |
[Deprecated] Use the The auto upgrade configuration. This parameter takes effect only when |
|
auto_upgrade
deprecated
|
boolean |
No |
[Deprecated] Use the Specifies whether to enable auto upgrade. Valid values:
|
null |
| surge |
integer |
No |
The number of surge nodes. You must specify either this parameter or 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 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:
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 |
| 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.
|
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.
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:
Default value: false. |
true |
| auto_renew_period |
integer |
No |
The auto-renewal period. Valid values:
Default value: 1. |
1 |
| spot_strategy |
string |
No |
The bidding policy for spot instances. Valid values:
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:
|
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:
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_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.
|
PL1 |
| system_disk_encrypted |
boolean |
No |
Specifies whether to encrypt the system cloud disk. Valid values:
|
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:
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 |
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:
Default value: false. |
false |
| internet_charge_type |
string |
No |
The billing method for the public IP address. Valid values:
|
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:
Default value: |
COST_OPTIMIZED |
| scaling_policy |
string |
No |
The scaling group pattern. Valid values:
Default value: |
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:
|
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
|
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 |
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:
|
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:
Default value: |
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.
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:
|
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:
|
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:
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:
Default value: |
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 |
| 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:
Default value: |
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:
For example, if the node IP address is 192.XX.YY.55, the specified prefix is aliyun.com, and the suffix is test:
|
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 |
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
|
basic |
| host_network |
boolean |
No |
Specifies whether the pod network mode uses the host network mode.
|
true |
| intranet |
boolean |
No |
Specifies whether Layer 3 network connectivity is enabled among nodes in the edge 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 |
| 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.