You can create ACK clusters using OpenAPI, including ACK managed clusters, ACK serverless clusters, ACK Edge clusters, and registered clusters. When creating a cluster, configure the cluster information, components, and related Alibaba Cloud resources.
Operation description
Generate OpenAPI request parameters in the console
If your CreateCluster API call fails due to an invalid combination of request parameters, you can generate a valid parameter combination directly in the console. Follow these steps:
-
Log on to the Container Service for Kubernetes console. In the left navigation pane, select Clusters.
-
On the Clusters page, click Cluster Templates.
-
In the dialog box, select the cluster type you want to create and click Create. Then, configure the cluster information on the cluster configuration page.
-
After completing the configuration, go to the Confirm Configuration page and click Equivalent Code in the upper-right corner. The dialog box displays the required parameter combination for cluster creation. Copy and use it as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:CreateCluster |
create |
*Cluster
|
|
None |
Request syntax
POST /clusters HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Request body parameters. |
cluster-demo |
| name |
string |
Yes |
Custom cluster name. It can contain digits, letters, Chinese characters, or hyphens (-). The name must be 1 to 63 characters long and cannot start with a hyphen (-). |
cluster-demo |
| region_id |
string |
Yes |
The region ID where the cluster is deployed. For more information, see Regions supported by Container Service for Kubernetes. |
cn-beijing |
| cluster_type |
string |
No |
|
Kubernetes |
| cluster_spec |
string |
No |
When
Pro XL, Pro 2XL, and Pro 4XL are three tiers provided by ACK Pro Provisioned Control Plane. These tiers pre-allocate and dedicate control plane resources to ensure consistently high API concurrency and pod scheduling performance, making them ideal for AI training/inference, ultra-large-scale clusters, and mission-critical workloads. For cluster management fees for Pro and provisioned control plane editions, see Cluster management fees. |
ack.pro.small |
| profile |
string |
No |
When
|
Default |
| kubernetes_version |
string |
No |
Cluster version, aligned with the Kubernetes community baseline version. We recommend selecting the latest version. If not specified, the latest version is used by default. You can create clusters using any of the three most recent versions. Use the DescribeKubernetesVersionMetadata API to query supported cluster versions. For more information about Kubernetes versions supported by ACK, see Overview of Kubernetes version releases. |
1.32.1-aliyun.1 |
| auto_mode |
object |
No |
Intelligent managed mode configuration. |
|
| enable |
boolean |
No |
Enable intelligent managed mode.
|
true |
| tags |
array |
No |
Node labels. Label rules:
|
|
| tag |
No |
Node labels. Label rules:
|
||
| resource_group_id |
string |
No |
The resource group ID to which the cluster belongs, enabling resource isolation. |
rg-acfm3mkrure**** |
| deletion_protection |
boolean |
No |
Cluster deletion protection prevents accidental deletion via the console or API. Valid values:
Default value: |
true |
| zone_ids |
array |
No |
A list of zone IDs within the cluster region. This parameter applies only to ACK managed clusters. |
|
|
string |
No |
The zone ID within the cluster region. Virtual switches are automatically created in this zone. When creating an ACK managed cluster without specifying |
cn-beijing-h |
|
| vpcid |
string |
No |
The VPC used by the cluster. You must provide this when creating the cluster. |
vpc-2zeik9h3ahvv2zz95**** |
| vswitch_ids |
array |
No |
Virtual switches for cluster nodes. This field is required when creating a zero-node managed cluster. |
|
|
string |
No |
Virtual switches for cluster nodes. This field is required when creating a zero-node managed cluster. |
vsw-2ze3ds0mdip0hdz8i**** |
|
| ip_stack |
string |
No |
Cluster IP stack. |
可选值: ipv4(单栈) dual(双栈),默认值为ipv4。 |
pod_vswitch_ids
deprecated
|
array |
No |
[Deprecated] When using the Terway network plugin, specify virtual switches to assign IP addresses to pods. Each pod virtual switch corresponds to a worker node virtual switch, and both must reside in the same zone. Note
We recommend that the pod virtual switch CIDR mask not exceed /19 and must not exceed /25. Otherwise, the number of assignable pod IP addresses becomes very limited, affecting normal cluster operation. |
|
|
string |
No |
When using the Terway network plugin, specify virtual switches to assign IP addresses to pods. Each pod virtual switch corresponds to a worker node virtual switch, and both must reside in the same zone. Note
We recommend that the pod virtual switch CIDR mask not exceed /19 and must not exceed /25. Otherwise, the number of assignable pod IP addresses becomes very limited, affecting normal cluster operation. |
vsw-2ze97jwri7cei0mpw**** |
|
| container_cidr |
string |
No |
Pod network CIDR block. It must be a valid private CIDR block: 10.0.0.0/8, 172.16–31.0.0/12–16, or 192.168.0.0/16. It cannot overlap with the VPC or existing Kubernetes cluster CIDR blocks. This cannot be modified after cluster creation. For cluster network planning, see Network planning for ACK managed clusters. Note
This field is required for Flannel clusters. |
172.20.0.0/16 |
| service_cidr |
string |
No |
Service network CIDR block. Valid ranges: 10.0.0.0/16–24, 172.16–31.0.0/16–24, 192.168.0.0/16–24. It cannot overlap with the VPC CIDR block 10.1.0.0/21 or existing Kubernetes cluster CIDR blocks. This cannot be modified after cluster creation. Default value: 172.19.0.0/20. |
172.21.0.0/20 |
| security_group_id |
string |
No |
Specify an existing security group ID when creating a cluster. Use either this parameter or |
sg-bp1bdue0qc1g7k**** |
| is_enterprise_security_group |
boolean |
No |
Automatically create an enterprise security group when Note
With basic security groups, the total number of nodes and Terway pods in a cluster cannot exceed 2,000. We recommend using enterprise security groups for Terway network clusters.
Default value: |
true |
| snat_entry |
boolean |
No |
Configure SNAT for the VPC. Valid values:
Note
If SNAT is not enabled during cluster creation but public network access is later required, you can enable it manually. Default value: |
false |
| control_plane_endpoints_config |
object |
No |
Cluster connection configuration. |
|
| internal_dns_config |
object |
No |
Internal domain name configuration for the cluster, applicable to ACK managed clusters. The internal domain name allows node-side system components like kubelet and kube-proxy to access the API Server. Without this, node-side components access the API Server via CLB IP. |
|
| bind_vpcs |
array |
No |
VPCs where the internal domain name resolution takes effect. |
|
|
string |
No |
VPCs where the internal domain name resolution takes effect. |
vpc-xxxx |
|
| endpoint_public_access |
boolean |
No |
Enable public network access. Expose the API Server via EIP to allow public access.
Default value: |
true |
| load_balancer_id |
string |
No |
Specify the CLB instance ID for API Server access. If specified, no new API Server CLB is automatically created. Note
Ensure the CLB instance has no dependencies (such as listeners or backend servers). Shared or public CLB instances are not supported. |
lb-wz9t256gqa3vbouk**** |
| ssh_flags |
boolean |
No |
Enable public SSH logon. Used to log on to master nodes of ACK dedicated clusters. This parameter does not take effect for managed clusters.
Default value: |
true |
| timezone |
string |
No |
Time zone used by the cluster. See Supported time zones. |
Asia/Shanghai |
| node_cidr_mask |
string |
No |
Number of node IPs, determined by the CIDR mask. Applies only to Flannel network clusters. Default value: |
25 |
| proxy_mode |
string |
No |
kube-proxy proxy mode
Default value: |
ipvs |
| controlplane_log_ttl |
string |
No |
Retention period (in days) for control plane component logs. |
30 |
| controlplane_log_project |
string |
No |
Simple Log Service project for control plane component logs. You can use an existing project or let the system create one automatically. If auto-created, the project name is |
k8s-log-xxx |
| controlplane_log_components |
array |
No |
List of component names to specify which control plane component logs to collect. By default, logs from kube-apiserver, kube-controller-manager, kube-scheduler, and cloud-controller-manager are collected. |
|
|
string |
No |
List of component names to specify which control plane component logs to collect. By default, logs from kube-apiserver, kube-controller-manager, kube-scheduler, and cloud-controller-manager are collected. |
["apiserver","kcm","scheduler"] |
|
| audit_log_config |
object |
No |
Cluster audit log configuration. |
|
| enabled |
boolean |
No |
Enable cluster audit logging.
|
true |
| sls_project_name |
string |
No |
The SLS Project containing the Logstore for cluster audit logs.
|
k8s-log-c2345xxxxxxxxxxxx |
| rrsa_config |
object |
No |
RRSA feature configuration. |
|
| enabled |
boolean |
No |
Enable RRSA.
|
true |
| cluster_domain |
string |
No |
Cluster local domain name. Naming rules: The domain consists of one or more parts separated by dots (.). Each part can be up to 63 characters long and can contain lowercase letters, digits, and hyphens (-). Each part must start and end with a lowercase letter or digit. |
cluster.local |
| encryption_provider_key |
string |
No |
KMS key ID used to encrypt data disks. For more information, see Key Management Service. Note
This feature applies only to professional managed clusters (ACK Pro clusters). |
0fe64791-55eb-4fc7-84c5-c6c7cdca**** |
| service_account_issuer |
string |
No |
ServiceAccount is the access credential used by pods to communicate with the cluster API Server. The For more information about |
kubernetes.default.svc |
| api_audiences |
string |
No |
ServiceAccount is the access credential used by pods to communicate with the cluster API Server. The For more information about |
kubernetes.default.svc |
| extra_sans |
array |
No |
Custom Subject Alternative Name (SAN) for the API Server certificate. |
|
|
string |
No |
Certificate SAN. Supports custom IP addresses or domain names. |
192.168.xx.xx |
|
| maintenance_window | maintenance_window |
No |
Cluster maintenance window. |
|
| operation_policy |
object |
No |
Cluster automated operations policy. |
|
| cluster_auto_upgrade |
object |
No |
Cluster automatic upgrade. |
|
| enabled |
boolean |
No |
Enable cluster automatic upgrade.
|
true |
| channel |
string |
No |
Cluster automatic upgrade frequency. Valid values:
|
stable |
| addons |
array |
No |
List of cluster components. Specify components to install during cluster creation using Network components: Required. Choose between Flannel and Terway:
Storage components: Optional. Only
Logging components: Optional. We recommend enabling this. Without Simple Log Service, you cannot use cluster audit features.
Ingress components: Optional. ACK dedicated clusters install the
Event Hub: Optional. Enabled by default. Event Hub provides storage, querying, and alerting for Kubernetes events. The associated Logstore is free for 90 days. For more information about the free tier, see Create and use Kubernetes Event Hub. Example to enable Event Hub: [{"name":"ack-node-problem-detector","config":"{"sls_project_name":"your_sls_project_name"}"}]. |
|
| addon |
No |
List of cluster components. Specify components to install during cluster creation using |
||
| nodepools |
array |
No |
List of node pools. |
|
| nodepool |
No |
Node pool configuration. |
||
| user_ca |
string |
No |
Custom cluster CA. |
-----BEGIN CERTIFICATE-----**** |
| control_plane_config |
object |
No |
Control plane configuration for ACK dedicated clusters. |
|
| charge_type |
string |
No |
Payment type for control plane nodes.
Default value: |
PostPaid |
| period |
integer |
No |
Subscription duration for control plane nodes in months. Required and valid only when charge_type is Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Unit: months. Default value: 1. |
1 |
| period_unit |
string |
No |
Time unit for control plane node subscription. Required and valid only when charge_type is Valid value: |
Month |
| auto_renew |
boolean |
No |
Enable auto-renewal for control plane nodes. Valid only when charge_type is
Default value: true. |
true |
| auto_renew_period |
integer |
No |
Auto-renewal duration for control plane nodes. Valid values: {1, 2, 3, 6, 12}. Unit: months. Default value: 1. |
1 |
| instance_types |
array |
No |
Node instance types. |
|
|
string |
No |
Node instance type specifications. |
ecs.g6.large |
|
| image_type |
string |
No |
Operating system image type. |
AliyunLinux3 |
| image_id |
string |
No |
Image ID. |
aliyun_3_x64_20G_alibase_20240819.vhd |
| key_pair |
string |
No |
Key pair name. Use either this parameter or login_password. |
ack |
| login_password |
string |
No |
SSH login password. Password rules: 8–30 characters, including at least three of the following: uppercase letters, lowercase letters, digits, and special characters. Use either this parameter or key_pair. |
******** |
| system_disk_category |
string |
No |
Node system disk type.
Default value: |
cloud_ssd |
| system_disk_size |
integer |
No |
Node system disk size. Valid range: [40,500]. Unit: GiB. Default value: |
120 |
| system_disk_snapshot_policy_id |
string |
No |
Automatic snapshot backup policy for node system disks. |
sp-2zej1nogjvovnz4z**** |
| system_disk_performance_level |
string |
No |
Node system disk performance level. Applies only to ESSD disks. Disk performance levels depend on disk size. For more information, see ESSD. |
PL1 |
| system_disk_provisioned_iops |
integer |
No |
Provisioned read/write IOPS for node system disks. Valid range: 0 to min{50,000, 1000 × capacity - baseline performance}. Baseline performance = min{1,800 + 50 × capacity, 50,000}. This parameter is supported only when |
1000 |
| system_disk_bursting_enabled |
boolean |
No |
Enable performance burst for node system disks.
This parameter is supported only when |
true |
| deploymentset_id |
string |
No |
Deployment set ID. |
ds-bp10b35imuam5amw**** |
| cloud_monitor_flags |
boolean |
No |
Install CloudMonitor agent on nodes.
Default value: false. |
false |
| instance_metadata_options | InstanceMetadataOptions |
No |
ECS instance metadata access configuration. |
|
| soc_enabled |
boolean |
No |
Enable MLPS 2.0 security hardening.
Default value: false. |
false |
| security_hardening_os |
boolean |
No |
Enable Alibaba Cloud OS security hardening.
Default value: false. |
false |
| cpu_policy |
string |
No |
Node CPU management policy.
Default value: none. |
none |
| runtime |
string |
No |
[Deprecated] Control plane node runtime name. Valid value: containerd: Containerd runtime, supported for all cluster versions. |
containerd |
| node_port_range |
string |
No |
[Deprecated] Node service port range. |
30000-32767 |
| size |
integer |
No |
Number of control plane nodes. Valid values: |
3 |
custom_san
deprecated
|
string |
No |
[Deprecated] Use the Custom certificate SAN. Separate multiple IP addresses or domain names with commas (,). |
cs.aliyun.com |
runtime
deprecated
|
runtime |
No |
Container runtime for the cluster. Supports containerd, sandboxed container, and Docker. Note
Kubernetes 1.24 no longer supports Docker as a built-in container runtime. For more information, see Comparison of Docker, containerd, and sandboxed container runtimes. |
|
node_name_mode
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the |
null |
user_data
deprecated
|
string |
No |
[Deprecated] Custom node data. |
IyEvdXNyL2Jpbi9iYXNoCmVjaG8gIkhlbGxvIEFD**** |
image_id
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Custom node image. By default, the system image is used. When a custom image is selected, it replaces the default system image. See Custom images. |
m-bp16z7xko3vvv8gt**** |
rds_instances
deprecated
|
array |
No |
[Deprecated] For node pool configuration, use the List of RDS instances to add to the whitelist. We recommend adding the pod and node CIDR blocks of your container to the RDS instance whitelist. Setting the RDS instance whitelist may fail if the instance is not in the Running state. |
|
|
string |
No |
List of RDS instances to add to the whitelist. We recommend adding the pod and node CIDR blocks of your container to the RDS instance whitelist. Setting the RDS instance whitelist may fail if the instance is not in the Running state. |
rm-2zev748xi27xc**** |
|
taints
deprecated
|
array |
No |
[Deprecated] For node pool configuration, use the Node taint information. Taints and tolerations work together to prevent pods from being scheduled onto unsuitable nodes. For more information, see taint-and-toleration. |
|
| taint |
No |
Node taint information. Taints and tolerations work together to prevent pods from being scheduled onto unsuitable nodes. For more information, see taint-and-toleration. |
||
cloud_monitor_flags
deprecated
|
boolean |
No |
[Deprecated] For control plane node configuration, use the cloud_monitor_flags parameter under Install CloudMonitor agent in the cluster. Valid values:
Default value: |
false |
platform
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the Operating system distribution. Valid values:
Default value: |
CentOS |
os_type
deprecated
|
string |
No |
[Deprecated] For control plane node configuration, use the Operating system platform type. Valid values:
Default value: |
Linux |
soc_enabled
deprecated
|
boolean |
No |
[Deprecated] For control plane node configuration, use the MLPS 2.0 security hardening. For more information, see Instructions for using MLPS 2.0 security hardening in ACK. Valid values:
Default value: |
false |
security_hardening_os
deprecated
|
boolean |
No |
[Deprecated] For control plane configuration, use the Alibaba Cloud OS security hardening. Valid values:
Default value: |
false |
cis_enabled
deprecated
|
boolean |
No |
[Deprecated] For control plane configuration, use the |
false |
cpu_policy
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Node CPU management policy. Supported for cluster versions 1.12.6 and later:
Default value: |
none |
node_port_range
deprecated
|
string |
No |
Node service port range. Valid range: [30000,65535]. Default value: |
30000~32767 |
master_vswitch_ids
deprecated
|
array |
No |
[Deprecated] Use the List of master node vSwitch IDs. The number of vSwitches must be in the range [1,3]. For high availability, we recommend selecting three vSwitches in different zones. The number of specified instance types must match |
|
|
string |
No |
List of master node vSwitch IDs. The number of vSwitches must be in the range [1,3]. For high availability, we recommend selecting three vSwitches in different zones. The number of specified instance types must match |
vsw-2ze3ds0mdip0hdz8i**** |
|
key_pair
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Key pair name. Use either this parameter or |
security-key |
login_password
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the SSH login password. Use either this parameter or |
null |
master_count
deprecated
|
integer |
No |
[Deprecated] For control plane configuration, use the Number of master nodes. Valid values: Default value: |
3 |
master_instance_types
deprecated
|
array |
No |
[Deprecated] For control plane configuration, use the Master node instance types. For more information, see Instance families. |
|
|
string |
No |
Master node instance types. The number of specified instance types must match |
ecs.n4.xlarge |
|
master_system_disk_category
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Master node system disk type. Valid values:
Default value: |
cloud_ssd |
master_system_disk_size
deprecated
|
integer |
No |
[Deprecated] For control plane configuration, use the Master node system disk size. Valid range: [40,500]. Unit: GiB. Default value: |
120 |
master_system_disk_performance_level
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Performance level of the master node system disk. Applies only to ESSD disks. Disk performance levels depend on disk size. For more information, see ESSD. |
PL1 |
master_system_disk_snapshot_policy_id
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Automatic snapshot policy ID for master node system disks. |
sp-2zej1nogjvovnz4z**** |
master_instance_charge_type
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Master node payment type. Valid values:
Default value: |
PrePaid |
master_period_unit
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Master node billing cycle. Required when master_instance_charge_type is Valid value: |
Month |
master_period
deprecated
|
integer |
No |
[Deprecated] For control plane configuration, use the Master node subscription duration in months. Required and valid only when Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Default value: 1. |
1 |
master_auto_renew
deprecated
|
boolean |
No |
[Deprecated] For control plane configuration, use the Enable auto-renewal for master nodes. Valid only when
Default value: |
true |
master_auto_renew_period
deprecated
|
integer |
No |
[Deprecated] For control plane configuration, use the Master node auto-renewal period. Required and valid only when subscription billing is selected. Valid values: {1, 2, 3, 6, 12}. Default value: 1. |
1 |
num_of_nodes
deprecated
|
integer |
No |
[Deprecated] For node pool configuration, use the Number of worker nodes. Range: [0,100]. |
3 |
worker_vswitch_ids
deprecated
|
array |
No |
[Deprecated] For node pool configuration, use the List of vSwitches used by cluster nodes. One vSwitch per node. When creating a zero-node managed cluster, |
|
|
string |
No |
List of worker node vSwitches. Valid range: [1,20]. For high availability, we recommend selecting vSwitches in different zones. When creating a zero-node managed cluster, |
vsw-2ze3ds0mdip0hdz8i**** |
|
worker_instance_types
deprecated
|
array |
No |
[Deprecated] For node pool configuration, use the Worker node instance configuration. |
|
|
string |
No |
Worker node instance types. Specify at least one instance type. For more information, see Instance families. Note
Instance type priority decreases in the order they appear in the list. If an instance cannot be created using a higher-priority instance type, the system automatically tries the next lower-priority type. |
ecs.n4.large |
|
worker_system_disk_category
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the Worker node system disk type. For more information, see Overview of Elastic Block Storage. Valid values:
Default value: |
cloud_efficiency |
worker_system_disk_size
deprecated
|
integer |
No |
[Deprecated] For node pool configuration, use the Worker node system disk size. Unit: GiB. Valid range: [40,500]. The value must be greater than or equal to max{40, ImageSize}. Default value: |
120 |
worker_system_disk_snapshot_policy_id
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the Automatic snapshot policy ID for worker node system disks. |
sp-2zej1nogjvovnz4z**** |
worker_system_disk_performance_level
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the When the system disk is an ESSD, you can set the performance level (PL). For more information, see ESSD. Valid values:
|
PL1 |
worker_data_disks
deprecated
|
array<object> |
No |
[Deprecated] For node pool configuration, use the Configuration for worker node data disks, including type and size. |
|
|
object |
No |
Data disk configuration set. |
||
| category |
string |
Yes |
Data disk type. |
cloud_essd |
| encrypted |
string |
No |
Encrypt the data disk. Valid values:
Default value: |
true |
| size |
string |
Yes |
Data disk size. Valid range: 40–32767. Unit: GiB. |
120 |
| performance_level |
string |
No |
Performance level of the node data disk. Applies only to ESSD. |
PL1 |
worker_instance_charge_type
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the Worker node payment type. Valid values:
Default value: Pay-as-you-go. |
PrePaid |
worker_period_unit
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the Worker node billing cycle. Required when worker_instance_charge_type is Valid value: |
Month |
worker_period
deprecated
|
integer |
No |
[Deprecated] For node pool configuration, use the Worker node subscription duration in months. Required and valid only when Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Default value: 1. |
1 |
worker_auto_renew
deprecated
|
boolean |
No |
[Deprecated] For node pool configuration, use the Enable auto-renewal for worker nodes. Valid only when
Default value: |
true |
worker_auto_renew_period
deprecated
|
integer |
No |
[Deprecated] For node pool configuration, use the Worker node auto-renewal period. Required and valid only when subscription billing is selected. Valid values: {1, 2, 3, 6, 12}. |
1 |
instances
deprecated
|
array |
No |
[Deprecated] Adding existing nodes during cluster creation is not supported. To add existing nodes to a cluster, first create a node pool and then call the AttachInstancesToNodePool API. When using existing nodes to create a cluster, specify the ECS instance list. These instances are added as worker nodes to the cluster. Note
This field is required when using existing instances to create a cluster. |
|
|
string |
No |
When using existing nodes to create a cluster, specify the ECS instance list. These instances are added as worker nodes to the cluster. Note
This field is required when using existing instances to create a cluster. |
i-2ze4zxnm36vq00xn**** |
|
format_disk
deprecated
|
boolean |
No |
[Deprecated] Adding existing nodes during cluster creation is not supported. To add existing nodes to a cluster, first create a node pool and then call the AttachInstancesToNodePool API. When using existing instances to create a cluster, specify whether to mount data disks. Valid values:
Default value: Data disk mounting rules:
|
false |
keep_instance_name
deprecated
|
boolean |
No |
[Deprecated] Adding existing nodes during cluster creation is not supported. To add existing nodes to a cluster, first create a node pool and then call the AttachInstancesToNodePool API. When using existing instances to create a cluster, specify whether to retain the instance name.
Default value: |
true |
service_discovery_types
deprecated
|
array |
No |
[Deprecated] Service discovery type for the cluster, used to specify the service discovery method in
Default value: Disabled. |
|
|
string |
No |
Service discovery type for the cluster, used to specify the service discovery method in
Default value: Disabled. |
PrivateZone |
|
nat_gateway
deprecated
|
boolean |
No |
[Deprecated] Use the |
true |
zone_id
deprecated
|
string |
No |
[Deprecated] Use the The zone ID within the cluster region. This parameter applies only to ACK managed clusters. When creating an ACK managed cluster without specifying |
cn-beiji**** |
logging_type
deprecated
|
string |
No |
[Deprecated] Enable Simple Log Service for the cluster. Applies only to ACK Serverless clusters and must be set to |
SLS |
disable_rollback
deprecated
|
boolean |
No |
[Deprecated] By default, cluster creation failures do not trigger rollback. You must manually clean up failed clusters. Roll back on cluster creation failure. Valid values:
Default value: |
true |
timeout_mins
deprecated
|
integer |
No |
[Deprecated] By default, cluster creation failures do not trigger rollback. You must manually clean up failed clusters. Cluster creation timeout in minutes. Default value: |
60 |
image_type
deprecated
|
string |
No |
[Deprecated] For control plane configuration, use the Operating system distribution type. We recommend using this parameter to specify the node operating system. Valid values:
Default value: |
AliyunLinux |
load_balancer_spec
deprecated
|
string |
No |
[Deprecated] CLB is billed based on usage. This parameter has no effect. Load Balancer specification. Valid values:
Default value: |
slb.s2.small |
enable_rrsa
deprecated
|
boolean |
No |
[Deprecated] Use the Enable RRSA.
|
false |
charge_type
deprecated
|
string |
No |
[Deprecated] Payment type for the CLB instance used by the API Server. Default value: PostPaid. Valid values:
Important
For details, see [Product Announcement] Discontinuation of Subscription Billing for API Server CLB in New Clusters and Adjustment Announcement for Classic Load Balancer Billing Items. |
PostPaid |
period_unit
deprecated
|
string |
No |
[Deprecated] Billing cycle. Required when payment type is PrePaid. Valid value: Month. Only monthly billing is supported. This parameter changed on October 15, 2024. For more information, see Announcement on Changes to CreateCluster API Parameters. |
Month |
period
deprecated
|
integer |
No |
[Deprecated] Subscription duration. Required and valid only when charge_type is PrePaid. Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Default value: 1. This parameter changed on October 15, 2024. For more information, see Announcement on Changes to CreateCluster API Parameters. |
1 |
auto_renew
deprecated
|
boolean |
No |
[Deprecated] Enable auto-renewal. Valid only when
Default value: This parameter changed on October 15, 2024. For more information, see Announcement on Changes to CreateCluster API Parameters. |
true |
auto_renew_period
deprecated
|
integer |
No |
[Deprecated] Auto-renewal period. Valid only when prepaid and auto-renewal are enabled. When Default value: 1. This parameter changed on October 15, 2024. For more information, see Announcement on Changes to CreateCluster API Parameters. |
1 |
access_control_list
deprecated
|
array |
No |
[Deprecated] Access control list for the registered cluster API Server SLB. |
|
|
string |
No |
Access control list for the registered cluster API Server SLB. |
192.168.XX.XX/24 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response body. |
||
| cluster_id |
string |
Cluster ID. |
cb95aa626a47740afbf6aa099b650**** |
| request_id |
string |
Request ID. |
687C5BAA-D103-4993-884B-C35E4314**** |
| task_id |
string |
Task ID. |
T-5a54309c80282e39ea**** |
Examples
Success response
JSON format
{
"cluster_id": "cb95aa626a47740afbf6aa099b650****",
"request_id": "687C5BAA-D103-4993-884B-C35E4314****",
"task_id": "T-5a54309c80282e39ea****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.