CreateCluster
You can use OpenAPI to create an ACK cluster, including ACK managed clusters, ACK serverless clusters, ACK Edge clusters, and registered clusters. When creating a cluster, you configure cluster information, cluster components, and related Alibaba Cloud resources.
Operation description
Generate OpenAPI request parameters in the console
If your CreateCluster API call fails due to incorrect parameter combinations, you can generate valid request parameters 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 your cluster on the cluster configuration page.
-
After completing your configuration, go to the Review 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 these parameters.
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 you set
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 levels of API concurrency and pod scheduling performance. They are suitable for AI training and inference, ultra-large-scale clusters, and mission-critical workloads. For cluster management fees for Pro Edition and provisioned control plane clusters, see Cluster management fees. |
ack.pro.small |
| profile |
string |
No |
When you set
|
Default |
| kubernetes_version |
string |
No |
Cluster version, aligned with the Kubernetes community baseline version. We recommend using the latest version. If you do not specify this parameter, the latest version is used by default. You can create clusters using the three most recent versions. Use the DescribeKubernetesVersionMetadata API operation 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 |
Whether to 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. This enables isolation of different resources. |
rg-acfm3mkrure**** |
| deletion_protection |
boolean |
No |
Cluster deletion protection prevents accidental cluster deletion through the console or API. Valid values:
Default value: |
true |
| zone_ids |
array |
No |
A list of zone IDs in the cluster region. This parameter applies only to ACK managed clusters. |
|
|
string |
No |
The zone ID in the cluster region. A vSwitch is automatically created in this zone. When creating an ACK managed cluster, if you do not specify |
cn-beijing-h |
|
| vpcid |
string |
No |
The VPC used by the cluster. You must provide a VPC when creating the cluster. |
vpc-2zeik9h3ahvv2zz95**** |
| vswitch_ids |
array |
No |
The vSwitches where cluster nodes reside. This field is required when creating a zero-node managed cluster. |
|
|
string |
No |
The vSwitches where cluster nodes reside. 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 |
[This field is deprecated.] When you select Terway as the network plug-in, specify the vSwitches to assign IP addresses to pods. Each pod vSwitch corresponds to a worker node vSwitch, and their zones must match. Note
We recommend that the pod vSwitch CIDR mask not exceed /19 and must not exceed /25. Otherwise, the number of assignable pod IP addresses becomes very limited, affecting normal cluster operations. |
|
|
string |
No |
When you select Terway as the network plug-in, specify the vSwitches to assign IP addresses to pods. Each pod vSwitch corresponds to a worker node vSwitch, and their zones must match. Note
We recommend that the pod vSwitch CIDR mask not exceed /19 and must not exceed /25. Otherwise, the number of assignable pod IP addresses becomes very limited, affecting normal cluster operations. |
vsw-2ze97jwri7cei0mpw**** |
|
| container_cidr |
string |
No |
The pod network CIDR block. It must be a valid private CIDR block: 10.0.0.0/8, 172.16.0.0/12 to 172.31.0.0/16, or 192.168.0.0/16, or their subnets. It cannot overlap with the VPC or existing Kubernetes cluster CIDR blocks in the VPC. This value cannot be modified after cluster creation. For more information about 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 |
The Service network CIDR block. Valid ranges: 10.0.0.0/16–24, 172.16.0.0/16–24 to 172.31.0.0/16–24, or 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 in the VPC. This value cannot be modified after cluster creation. Default value: 172.19.0.0/20. |
172.21.0.0/20 |
| security_group_id |
string |
No |
When using an existing security group to create a cluster, specify the security group ID. This parameter and |
sg-bp1bdue0qc1g7k**** |
| is_enterprise_security_group |
boolean |
No |
Automatically create an advanced security group. This takes effect only when Note
When using a basic security group, the total number of nodes and Terway pods in the cluster cannot exceed 2,000. Therefore, we recommend using an advanced security group for Terway network clusters.
Default value: |
true |
| snat_entry |
boolean |
No |
Configure SNAT for the VPC. Valid values:
Note
If you do not enable this during cluster creation but later need public network access, you can manually enable it. 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 such as kubelet and kube-proxy to access the API Server. If internal domain name access is disabled, node-side system components access the API Server through the CLB IP address. |
|
| bind_vpcs |
array |
No |
The VPCs where the internal domain name resolution takes effect. |
|
|
string |
No |
The VPCs where the internal domain name resolution takes effect. |
vpc-xxxx |
|
| endpoint_public_access |
boolean |
No |
Whether to enable public network access. Expose the API Server through an EIP to allow public network access to the cluster.
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 and public CLB instances are not supported. |
lb-wz9t256gqa3vbouk**** |
| ssh_flags |
boolean |
No |
Whether to enable public SSH logon. This is 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 |
The time zone used by the cluster. For more information, see Supported time zones. |
Asia/Shanghai |
| node_cidr_mask |
string |
No |
The number of IP addresses per node, determined by the specified CIDR mask. This parameter 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 |
Number of days to retain control plane component logs. |
30 |
| controlplane_log_project |
string |
No |
The Simple Log Service project for control plane component logs. You can use an existing project or let the system automatically create one. If auto-created, the project name is |
k8s-log-xxx |
| controlplane_log_components |
array |
No |
List of component names specifying 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 specifying 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 |
Whether to 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 |
Whether to enable the RRSA feature.
|
true |
| cluster_domain |
string |
No |
Cluster local domain name. Naming rules: The domain name 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 |
The KMS key ID used to encrypt data disks. For more information, see Key Management Service. Note
This feature is available only for professional managed clusters (ACK Pro clusters). |
0fe64791-55eb-4fc7-84c5-c6c7cdca**** |
| service_account_issuer |
string |
No |
A ServiceAccount is the access credential that pods use to communicate with the cluster API Server. The For more information about |
kubernetes.default.svc |
| api_audiences |
string |
No |
A ServiceAccount is the access credential that pods use to communicate with the cluster API Server. The For more information about |
kubernetes.default.svc |
| extra_sans |
array |
No |
Custom Subject Alternative Names (SANs) for the API Server certificate. |
|
|
string |
No |
Certificate SANs. You can specify custom IP addresses or domain names. |
192.168.xx.xx |
|
| maintenance_window | maintenance_window |
No |
Cluster maintenance window. |
|
| operation_policy |
object |
No |
Cluster automated O&M policy. |
|
| cluster_auto_upgrade |
object |
No |
Cluster automatic upgrade. |
|
| enabled |
boolean |
No |
Whether to enable cluster automatic upgrade.
|
true |
| channel |
string |
No |
Cluster automatic upgrade frequency. Valid values:
|
stable |
| addons |
array |
No |
List of cluster add-ons. Specify the add-ons you want to install when creating the cluster using the Network add-ons: Required. Choose between Flannel and Terway:
Storage add-ons: Optional. Only
Logging add-ons: Optional. We recommend enabling this. Without Simple Log Service, you cannot use cluster audit features.
Ingress add-on: Optional. ACK dedicated clusters install the
Event Hub: Optional. Enabled by default. Event Hub provides storage, querying, and alerting capabilities for Kubernetes events. The associated Logstore for Kubernetes Event Hub is free for 90 days. For more information about the free policy, 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 add-ons. Specify the add-ons you want to install when creating the cluster using the |
||
| 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}. Default value: 1. |
1 |
| period_unit |
string |
No |
Time unit for the subscription duration of control plane nodes. Required and valid only when charge_type is Valid value: |
Month |
| auto_renew |
boolean |
No |
Whether to 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, in months. Valid values: {1, 2, 3, 6, 12}. 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. Mutually exclusive with 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. Mutually exclusive with 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] 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 |
Disk performance level for node system disks. Applies only to ESSD disks. Disk performance level depends 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 |
Whether to enable bursting (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 |
Whether to install Cloud Monitor on nodes.
Default value: false. |
false |
| instance_metadata_options | InstanceMetadataOptions |
No |
ECS instance metadata access configuration. |
|
| soc_enabled |
boolean |
No |
Whether to enable MLPS 2.0 security hardening.
Default value: false. |
false |
| security_hardening_os |
boolean |
No |
Whether to 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 |
[This field is deprecated.] Control plane node runtime name. Valid value: containerd: Containerd runtime, supported for all cluster versions. |
containerd |
| node_port_range |
string |
No |
[This field is deprecated.] Node service port range. |
30000-32767 |
| size |
integer |
No |
Number of control plane nodes. Valid values: |
3 |
custom_san
deprecated
|
string |
No |
[This field is deprecated.] Use the Custom certificate SANs. Separate multiple IP addresses or domain names with commas (,). |
cs.aliyun.com |
runtime
deprecated
|
runtime |
No |
Container runtime for the cluster. Supported runtimes include 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 |
[This field is deprecated.] For node pool configuration, use the |
null |
user_data
deprecated
|
string |
No |
[This field is deprecated.] Custom node data. |
IyEvdXNyL2Jpbi9iYXNoCmVjaG8gIkhlbGxvIEFD**** |
image_id
deprecated
|
string |
No |
[This field is deprecated.] For control plane configuration, use the Custom node image. By default, the system image is used. When you select a custom image, it replaces the default system image. For more information, see Custom images. |
m-bp16z7xko3vvv8gt**** |
rds_instances
deprecated
|
array |
No |
[This field is 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 RDS instances may fail if the instances are 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 RDS instances may fail if the instances are not in the Running state. |
rm-2zev748xi27xc**** |
|
taints
deprecated
|
array |
No |
[This field is 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 |
[This field is deprecated.] For control plane node configuration, use the cloud_monitor_flags parameter under Whether to install the CloudMonitor agent on the cluster. Valid values:
Default value: |
false |
platform
deprecated
|
string |
No |
[This field is deprecated.] For node pool configuration, use the Operating system distribution. Valid values:
Default value: |
CentOS |
os_type
deprecated
|
string |
No |
[This field is deprecated.] For control plane node configuration, use the Operating system platform type. Valid values:
Default value: |
Linux |
soc_enabled
deprecated
|
boolean |
No |
[This field is 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 |
[This field is deprecated.] For control plane configuration, use the Alibaba Cloud OS security hardening. Valid values:
Default value: |
false |
cis_enabled
deprecated
|
boolean |
No |
[This field is deprecated.] For control plane configuration, use the |
false |
cpu_policy
deprecated
|
string |
No |
[This field is deprecated.] For control plane configuration, use the Node CPU management policy. For clusters running Kubernetes version 1.12.6 or later, the following policies are supported:
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 |
[This field is deprecated.] Use the List of master node vSwitch IDs. The number of vSwitches must be in the range [1,3]. To ensure 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]. To ensure 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 |
[This field is deprecated.] For control plane configuration, use the Key pair name. Mutually exclusive with |
security-key |
login_password
deprecated
|
string |
No |
[This field is deprecated.] For control plane configuration, use the SSH login password. Mutually exclusive with |
null |
master_count
deprecated
|
integer |
No |
[This field is deprecated.] For control plane configuration, use the Number of master nodes. Valid values: Default value: |
3 |
master_instance_types
deprecated
|
array |
No |
[This field is 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 |
[This field is 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 |
[This field is deprecated.] For control plane configuration, use the Master node system disk size. Valid range: [40,500] GiB. Default value: |
120 |
master_system_disk_performance_level
deprecated
|
string |
No |
[This field is deprecated.] For control plane configuration, use the Performance level of the master node system disk. Applies only to ESSD disks. Disk performance level depends on disk size. For more information, see ESSD. |
PL1 |
master_system_disk_snapshot_policy_id
deprecated
|
string |
No |
[This field is deprecated.] For control plane configuration, use the ID of the automatic snapshot policy for the master node system disk. |
sp-2zej1nogjvovnz4z**** |
master_instance_charge_type
deprecated
|
string |
No |
[This field is deprecated.] For control plane configuration, use the Master node payment type. Valid values:
Default value: |
PrePaid |
master_period_unit
deprecated
|
string |
No |
[This field is deprecated.] For control plane configuration, use the Master node billing cycle. Required when the payment type is Valid value: |
Month |
master_period
deprecated
|
integer |
No |
[This field is deprecated.] For control plane configuration, use the Subscription duration for master nodes, 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 |
[This field is deprecated.] For control plane configuration, use the Whether to enable auto-renewal for master nodes. Valid only when
Default value: |
true |
master_auto_renew_period
deprecated
|
integer |
No |
[This field is deprecated.] For control plane configuration, use the Auto-renewal period for master nodes, in months. Required and valid only when the payment type is subscription. Valid values: {1, 2, 3, 6, 12}. Default value: 1. |
1 |
num_of_nodes
deprecated
|
integer |
No |
[This field is deprecated.] For node pool configuration, use the Number of worker nodes. Range: [0, 100]. |
3 |
worker_vswitch_ids
deprecated
|
array |
No |
[This field is deprecated.] For node pool configuration, use the List of vSwitches used by cluster nodes. One node corresponds to one value. When creating a zero-node managed cluster, |
|
|
string |
No |
List of worker node vSwitches. Valid range: [1,20]. To ensure high availability, we recommend selecting vSwitches in different zones. When creating a zero-node managed cluster, |
vsw-2ze3ds0mdip0hdz8i**** |
|
worker_instance_types
deprecated
|
array |
No |
[This field is deprecated.] For node pool configuration, use the Worker node instance configuration. |
|
|
string |
No |
Worker node instance types. You must 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 instance type. |
ecs.n4.large |
|
worker_system_disk_category
deprecated
|
string |
No |
[This field is 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 |
[This field is deprecated.] For node pool configuration, use the Worker node system disk size, in GiB. Valid range: [40,500]. This value must be greater than or equal to max{40, ImageSize}. Default value: |
120 |
worker_system_disk_snapshot_policy_id
deprecated
|
string |
No |
[This field is deprecated.] For node pool configuration, use the ID of the automatic snapshot policy for the worker node system disk. |
sp-2zej1nogjvovnz4z**** |
worker_system_disk_performance_level
deprecated
|
string |
No |
[This field is 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 |
[This field is deprecated.] For node pool configuration, use the Configuration of worker node data disk types, sizes, and other settings. |
|
|
object |
No |
Data disk configuration set. |
||
| category |
string |
Yes |
Data disk type. |
cloud_essd |
| encrypted |
string |
No |
Whether to encrypt the data disk. Valid values:
Default value: |
true |
| size |
string |
Yes |
Data disk size. Valid range: 40–32767 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 |
[This field is 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 |
[This field is deprecated.] For node pool configuration, use the Worker node billing cycle. Required when the payment type is Valid value: |
Month |
worker_period
deprecated
|
integer |
No |
[This field is deprecated.] For node pool configuration, use the Subscription duration for worker nodes, 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 |
[This field is deprecated.] For node pool configuration, use the Whether to enable auto-renewal for worker nodes. Valid only when
Default value: |
true |
worker_auto_renew_period
deprecated
|
integer |
No |
[This field is deprecated.] For node pool configuration, use the Auto-renewal period for worker nodes, in months. Required and valid only when the payment type is subscription. Valid values: {1, 2, 3, 6, 12}. |
1 |
instances
deprecated
|
array |
No |
[This field is deprecated.] Creating a cluster does not support selecting existing nodes. To add existing nodes to a cluster, first create a node pool and then call the AttachInstancesToNodePool API operation. When using existing nodes to create a cluster, specify the ECS instance list. These instances are added to the cluster as worker nodes. 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 to the cluster as worker nodes. Note
This field is required when using existing instances to create a cluster. |
i-2ze4zxnm36vq00xn**** |
|
format_disk
deprecated
|
boolean |
No |
[This field is deprecated.] Creating a cluster does not support selecting existing nodes. To add existing nodes to a cluster, first create a node pool and then call the AttachInstancesToNodePool API operation. When using existing instances to create a cluster, whether to mount data disks. Valid values:
Default value: Data disk mounting rules:
|
false |
keep_instance_name
deprecated
|
boolean |
No |
[This field is deprecated.] Creating a cluster does not support selecting existing nodes. To add existing nodes to a cluster, first create a node pool and then call the AttachInstancesToNodePool API operation. When using existing instances to create a cluster, whether to keep the instance names.
Default value: |
true |
service_discovery_types
deprecated
|
array |
No |
[This field is deprecated.] Service discovery types within the cluster, used to specify the service discovery method for
Default value: Disabled. |
|
|
string |
No |
Service discovery types within the cluster, used to specify the service discovery method for
Default value: Disabled. |
PrivateZone |
|
nat_gateway
deprecated
|
boolean |
No |
[This field is deprecated.] Use the |
true |
zone_id
deprecated
|
string |
No |
[This field is deprecated.] Use the The zone ID in the cluster region. This parameter applies only to ACK managed clusters. When creating an ACK managed cluster, if you do not specify |
cn-beiji**** |
logging_type
deprecated
|
string |
No |
[This field is deprecated.] Enables Simple Log Service for the cluster. Applies only to ACK Serverless clusters and must be set to |
SLS |
disable_rollback
deprecated
|
boolean |
No |
[This field is deprecated.] By default, clusters are not rolled back on creation failure. You must manually clean up failed clusters. Whether to roll back when cluster creation fails. Valid values:
Default value: |
true |
timeout_mins
deprecated
|
integer |
No |
[This field is deprecated.] By default, clusters are not rolled back on creation failure. You must manually clean up failed clusters. Cluster creation timeout, in minutes. Default value: |
60 |
image_type
deprecated
|
string |
No |
[This field is 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 |
[This parameter is 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 |
[This field is deprecated.] Use the Whether to enable the RRSA feature.
|
false |
charge_type
deprecated
|
string |
No |
[This field is 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 |
[This field is deprecated.] Billing cycle. Required when the payment type is PrePaid. Valid value: Month. Only monthly billing cycles are supported. This parameter changed on October 15, 2024. For more information, see Announcement on Changes to CreateCluster API Parameters. |
Month |
period
deprecated
|
integer |
No |
[This field is 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 |
[This field is deprecated.] Whether to 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 |
[This field is 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 |
[This field is 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.