Creates an ACK cluster, including ACK managed clusters, ACK Serverless clusters, ACK Edge clusters, and registered clusters. When you create a cluster, you configure cluster information, cluster components, and ACK-related cloud resources.
Operation description
Generate OpenAPI request parameters by using the console
When you call the CreateCluster operation to create a cluster, if the call fails due to incorrect request parameter combinations, you can use the console to generate the required request parameter combinations. Perform the following steps:
-
Log on to the Container Service for Kubernetes (ACK) console and choose Clusters in the left-side navigation pane.
-
On the Clusters page, click Cluster Template.
-
In the dialog box, select the cluster type that you want to create, click Create, and then configure the cluster information on the cluster configuration page.
-
After the configuration is complete, on the Confirm Configuration page, click Equivalent Code in the upper-right corner. The dialog box displays the parameter combinations required for creating the cluster. You can copy and use them.
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 |
The request body parameters. |
cluster-demo |
access_control_list
deprecated
|
array |
No |
[Deprecated] The access control list (ACL) of the SLB instance for the API server of a registered cluster. |
|
|
string |
No |
The access control list (ACL) of the SLB instance for the API server of a registered cluster. |
192.168.XX.XX/24 |
|
| addons |
array |
No |
The list of cluster components. When you create a cluster, use Network component: Required. Two network types are available: Flannel and Terway. Select one when you create a cluster:
Storage component: Optional. Only the
Log component: Optional. We recommend that you enable this component. If you do not enable the log service, you cannot use the cluster audit feature.
Ingress component: Optional. By default, the Ingress component
Event Center: Optional. Enabled by default. Event Center provides the capabilities to store, query, and alert on Kubernetes events. The Logstore associated with Kubernetes Event Center is free of charge for 90 days. For more information about the free policy, see Create and use Kubernetes Event Center. Example of enabling Event Center: [{"name":"ack-node-problem-detector","config":"{"sls_project_name":"your_sls_project_name"}"}]. |
|
| addon |
No |
The list of cluster components. When you create a cluster, use |
||
| api_audiences |
string |
No |
A ServiceAccount is the access credential used by a pod to communicate with the cluster API server. The For more information about |
kubernetes.default.svc |
| audit_log_config |
object |
No |
The cluster audit log configuration. |
|
| enabled |
boolean |
No |
Specifies whether to enable the cluster audit log feature. Valid values:
|
true |
| sls_project_name |
string |
No |
The SLS Project that contains the Logstore for cluster audit logs.
|
k8s-log-c2345xxxxxxxxxxxx |
| auto_mode |
object |
No |
The intelligent managed mode configuration. |
|
| enable |
boolean |
No |
Specifies whether to enable intelligent managed mode. Valid values:
|
true |
auto_renew
deprecated
|
boolean |
No |
[Deprecated] Specifies whether to enable auto-renewal. This parameter takes effect only when
Default value: This parameter was changed on October 15, 2024. For more information, see Notice on behavior changes of the CreateCluster parameter. |
true |
auto_renew_period
deprecated
|
integer |
No |
[Deprecated] The auto-renewal epoch. This parameter takes effect only when the billing method is upfront and auto-renewal is enabled. When Default value: 1. This parameter was changed on October 15, 2024. For more information, see Notice on behavior changes of the CreateCluster parameter. |
1 |
charge_type
deprecated
|
string |
No |
[Deprecated] The billing method of the CLB instance used by the API server. Default value: PostPaid. Valid values:
Important
For more information, see Notice on billing changes for Classic Load Balancer (CLB). |
PostPaid |
cis_enabled
deprecated
|
boolean |
No |
[Deprecated] For cluster control plane configuration, use the |
false |
| client_token |
string |
No |
The client token. |
0a287651-1277-4c0d-80d2-623a4***** |
cloud_monitor_flags
deprecated
|
boolean |
No |
[Deprecated] For cluster control plane node configuration, use the Specifies whether to install the CloudMonitor agent on the cluster. Valid values:
Default value: |
false |
| cluster_domain |
string |
No |
The cluster local domain name. Naming rules: A domain name consists of one or more parts separated by periods (.). 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 |
| cluster_spec |
string |
No |
After you set
Pro XL, Pro 2XL, and Pro 4XL are three tiers provided by ACK Pro Provisioned Control Plane. By pre-allocating and dedicating control plane resources, these tiers ensure that API concurrency and pod scheduling capabilities remain at a consistently high level. They are suitable for AI training and inference, ultra-large-scale clusters, and mission-critical workloads. For information about the cluster management fees for Pro Edition and Provisioned Control Plane editions, see Cluster management fee. |
ack.pro.small |
| cluster_type |
string |
No |
Valid values:
|
Kubernetes |
| container_cidr |
string |
No |
The CIDR block for pods. This must be a valid private CIDR block, specifically the following CIDR blocks and their subnets: 10.0.0.0/8, 172.16-31.0.0/12-16, and 192.168.0.0/16. The CIDR block cannot overlap with the VPC CIDR block or the CIDR blocks used by existing Kubernetes clusters in the VPC. You cannot modify this CIDR block after the cluster is created. For more information about cluster network planning, see Plan the network of an ACK managed cluster. Note
This parameter is required for Flannel clusters. |
172.20.0.0/16 |
| control_plane_config |
object |
No |
The control plane configuration for ACK dedicated clusters. |
|
| auto_renew |
boolean |
No |
Specifies whether to enable auto-renewal for control plane nodes. This parameter takes effect only when the billing method is set to
Default value: true. |
true |
| auto_renew_period |
integer |
No |
The auto-renewal period for control plane nodes. Valid values: {1, 2, 3, 6, 12}. Unit: months. Default value: 1. |
1 |
| charge_type |
string |
No |
The billing method for control plane nodes.
Default value: |
PostPaid |
| cloud_monitor_flags |
boolean |
No |
Specifies whether to install CloudMonitor on nodes.
Default value: false. |
false |
| cpu_policy |
string |
No |
The node CPU management policy.
Default value: none. |
none |
| deploymentset_id |
string |
No |
The deployment set ID. |
ds-bp10b35imuam5amw**** |
| image_id |
string |
No |
The image ID. |
aliyun_3_x64_20G_alibase_20240819.vhd |
| image_type |
string |
No |
The operating system image type. |
AliyunLinux3 |
| instance_metadata_options | InstanceMetadataOptions |
No |
The ECS instance metadata access configuration. |
|
| instance_types |
array |
No |
The node instance types. |
|
|
string |
No |
The node instance type. |
ecs.g6.large |
|
| key_pair |
string |
No |
The key pair name. You must set one of key_pair and login_password. |
ack |
| login_password |
string |
No |
The SSH logon password. The password must be 8 to 30 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. You must set one of login_password and key_pair. |
******** |
| node_port_range |
string |
No |
[Deprecated] The node service port range. |
30000-32767 |
| period |
integer |
No |
The subscription duration for control plane nodes. This parameter is required and takes effect only when the billing method is set to Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Unit: months. Default value: 1. |
1 |
| period_unit |
string |
No |
The subscription duration unit for control plane nodes. This parameter is required and takes effect only when the billing method is set to Valid value: |
Month |
| runtime |
string |
No |
[Deprecated] The runtime name for control plane nodes. Valid values: containerd: The Containerd runtime, which is supported by all cluster versions. |
containerd |
| security_hardening_os |
boolean |
No |
Specifies whether to enable Alibaba Cloud OS security hardening.
Default value: false. |
false |
| size |
integer |
No |
The number of control plane nodes. Valid values: |
3 |
| soc_enabled |
boolean |
No |
Specifies whether to enable MLPS security hardening.
Default value: false. |
false |
| system_disk_bursting_enabled |
boolean |
No |
Specifies whether to enable burst performance for node system cloud disks.
This parameter is supported only when |
true |
| system_disk_category |
string |
No |
The node system cloud disk type.
Default value: |
cloud_ssd |
| system_disk_performance_level |
string |
No |
The performance level of the node system cloud disk. This parameter takes effect only for ESSD cloud disks. The performance level varies based on the cloud disk size. For more information, see ESSD cloud disks. |
PL1 |
| system_disk_provisioned_iops |
integer |
No |
The provisioned read/write IOPS for node system cloud disks. Valid values: 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_size |
integer |
No |
The node system cloud disk size. Valid values: [40, 500]. Unit: GiB. Default value: |
120 |
| system_disk_snapshot_policy_id |
string |
No |
The automatic snapshot policy for node system cloud disks. |
sp-2zej1nogjvovnz4z**** |
| control_plane_endpoints_config |
object |
No |
The cluster endpoint configuration. |
|
| internal_dns_config |
object |
No |
The internal DNS configuration for the cluster. This parameter applies to ACK managed clusters. The internal domain name is used by node-side system components such as kubelet and kube-proxy to access the API Server. If the internal domain name access is not enabled, node-side system components access the API Server through the CLB IP address. |
|
| bind_vpcs |
array |
No |
The VPCs in which the internal DNS records of the cluster take effect. |
|
|
string |
No |
The VPCs in which the internal DNS records of the cluster take effect. |
vpc-xxxx |
|
| load_balancers_config |
array<object> |
No |
The cluster endpoint configuration. When this parameter is specified, the endpoint_public_access and load_balancer_id parameters do not take effect. ACK supports only automatic creation of NLB instances. To specify a CLB or NLB instance, use load_balancers_config to specify the corresponding instance ID. |
|
|
object |
No |
The load balancing configuration for cluster access. |
||
| endpoint_type |
string |
No |
The endpoint type. |
private |
| load_balancer_id |
string |
No |
The NLB instance ID. |
nlb-0ogk9aaxxxxxxx |
| controlplane_log_components |
array |
No |
The list of component names that specifies which control plane components to collect logs from. By default, logs are collected from kube-apiserver, kube-controller-manager, kube-scheduler, and cloud-controller-manager. |
|
|
string |
No |
The list of component names that specifies which control plane components to collect logs from. By default, logs are collected from kube-apiserver, kube-controller-manager, kube-scheduler, and cloud-controller-manager. |
["apiserver","kcm","scheduler"] |
|
| controlplane_log_project |
string |
No |
The Simple Log Service project for control plane component logs. You can use an existing project for log storage, or the system automatically creates a project. If you choose automatic creation, a Simple Log Service project named |
k8s-log-xxx |
| controlplane_log_ttl |
string |
No |
The log retention period for control plane component logs, in days. |
30 |
cpu_policy
deprecated
|
string |
No |
[Deprecated] Use the The node CPU management policy. The following policies are supported for clusters of version 1.12.6 or later:
Default value: |
none |
custom_san
deprecated
|
string |
No |
[Deprecated] Use the The custom certificate Subject Alternative Name (SAN). Separate multiple IP addresses or domain names with commas (,). |
cs.aliyun.com |
| deletion_protection |
boolean |
No |
Specifies whether to enable cluster deletion protection, which prevents the cluster from being accidentally deleted in the console or by calling API operations. Valid values:
Default value: |
true |
disable_rollback
deprecated
|
boolean |
No |
[Deprecated] When cluster creation fails, no rollback is performed by default. You must manually clean up the failed cluster. Specifies whether to roll back the cluster if cluster creation fails. Valid values:
Default value: |
true |
enable_rrsa
deprecated
|
boolean |
No |
[Deprecated] Use the Specifies whether to enable the RRSA feature.
|
false |
| encryption_provider_key |
string |
No |
The ID of the Key Management Service (KMS) key used to encrypt cloud disks. For more information, see Key Management Service. Note
This feature takes effect only in ACK Pro clusters. |
0fe64791-55eb-4fc7-84c5-c6c7cdca**** |
| endpoint_public_access |
boolean |
No |
Specifies whether to enable public network access. An Elastic IP Address (EIP) is used to expose the API Server for public network access to the cluster.
Default value: |
true |
| extra_sans |
array |
No |
The custom Subject Alternative Name (SAN) for the API Server certificate. |
|
|
string |
No |
The certificate SAN. Supports custom IP addresses or domain names. |
192.168.xx.xx |
|
format_disk
deprecated
|
boolean |
No |
[Deprecated] Selecting existing nodes during cluster creation is not supported. To add existing nodes to a cluster, create a node pool first and call the AttachInstancesToNodePool operation. Specifies whether to mount data disks to existing instances when creating a cluster with existing instances. Valid values:
Default value: Data disk mounting rules:
|
false |
image_id
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The custom image for nodes. The system image is used by default. When a custom image is selected, it replaces the default system image. For more information, see Custom images. |
m-bp16z7xko3vvv8gt**** |
image_type
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The operating system distribution type. We recommend that you use this field to specify the node operating system. Valid values:
Default value: |
AliyunLinux |
instances
deprecated
|
array |
No |
[Deprecated] Selecting existing nodes during cluster creation is not supported. To add existing nodes to a cluster, create a node pool first and call the AttachInstancesToNodePool operation. The list of ECS instances to use when creating a cluster with existing nodes. These instances are added to the cluster as worker nodes. Note
This field is required when you create a cluster by using existing instances. |
|
|
string |
No |
The list of ECS instances to use when creating a cluster with existing nodes. These instances are added to the cluster as worker nodes. Note
This field is required when you create a cluster by using existing instances. |
i-2ze4zxnm36vq00xn**** |
|
| ip_stack |
string |
No |
The IP protocol stack of the cluster. |
Valid values: ipv4 (single stack) dual (dual stack). Default value: ipv4 |
| is_enterprise_security_group |
boolean |
No |
Specifies whether to enable automatic creation of an advanced security group. This parameter takes effect when Note
When a basic security group is used, the total number of nodes and Terway pods in the cluster cannot exceed 2000. Therefore, when creating a Terway network type cluster, use an advanced security group.
Default value: |
true |
keep_instance_name
deprecated
|
boolean |
No |
[Deprecated] Selecting existing nodes during cluster creation is not supported. To add existing nodes to a cluster, create a node pool first and call the AttachInstancesToNodePool operation. Specifies whether to retain instance names when creating a cluster with existing instances.
Default value: |
true |
key_pair
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The name of the key pair. Mutually exclusive with |
security-key |
| kubernetes_version |
string |
No |
The cluster version, which is consistent with the Kubernetes community baseline version. Use the latest version. If you do not specify this parameter, the latest version is used by default. You can create clusters of the three most recent versions. Call the DescribeKubernetesVersionMetadata operation to query supported cluster versions. For more information about Kubernetes versions supported by ACK, see Kubernetes version release overview. |
1.32.1-aliyun.1 |
| load_balancer_id |
string |
No |
The instance ID of the Classic Load Balancer (CLB) used for API Server access. If this parameter is specified, automatic creation of an API Server CLB is skipped. Note
Make sure that the CLB instance has no other dependencies (such as listeners or backend servers). Shared and Internet-facing CLB instances are not supported. |
lb-wz9t256gqa3vbouk**** |
load_balancer_spec
deprecated
|
string |
No |
[Deprecated] CLB uses pay-by-usage billing. This parameter does not take effect. The load balancing specification. Valid values:
Default value: |
slb.s2.small |
logging_type
deprecated
|
string |
No |
[Deprecated] Enables the log service for the cluster. This parameter takes effect only for ACK Serverless clusters, and the value must be |
SLS |
login_password
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The SSH logon password. Mutually exclusive with |
null |
| maintenance_window | maintenance_window |
No |
The cluster O&M window. |
|
master_auto_renew
deprecated
|
boolean |
No |
[Deprecated] For cluster control plane configuration, use the Specifies whether to enable auto-renewal for master nodes. This parameter takes effect only when
Default value: |
true |
master_auto_renew_period
deprecated
|
integer |
No |
[Deprecated] For cluster control plane configuration, use the The auto-renewal epoch for master nodes. This parameter takes effect and is required only when the subscription billing method is selected. Valid values: {1, 2, 3, 6, 12}. Default value: 1. |
1 |
master_count
deprecated
|
integer |
No |
[Deprecated] For cluster control plane configuration, use the The number of master nodes. Valid values: Default value: |
3 |
master_instance_charge_type
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The billing method for master nodes. Valid values:
Default value: |
PrePaid |
master_instance_types
deprecated
|
array |
No |
[Deprecated] For cluster control plane configuration, use the The instance types for master nodes. For more information, see Instance families. |
|
|
string |
No |
The instance type for a master node. The number of specified instance types must match the value of |
ecs.n4.xlarge |
|
master_period
deprecated
|
integer |
No |
[Deprecated] For cluster control plane configuration, use the The subscription duration for master nodes. This parameter takes effect and is required only when Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Default value: 1. |
1 |
master_period_unit
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The subscription period unit for master nodes. This parameter is required when the billing method is Valid values: |
Month |
master_system_disk_category
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The system cloud disk type for master nodes. Valid values:
Default value: |
cloud_ssd |
master_system_disk_performance_level
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The performance level (PL) of the system cloud disk for master nodes. This parameter takes effect only for ESSD cloud disks. The performance level is related to the disk size. For more information, see ESSD cloud disks. |
PL1 |
master_system_disk_size
deprecated
|
integer |
No |
[Deprecated] For cluster control plane configuration, use the The system cloud disk size for master nodes. Valid values: [40, 500]. Unit: GiB. Default value: |
120 |
master_system_disk_snapshot_policy_id
deprecated
|
string |
No |
[Deprecated] For cluster control plane configuration, use the The ID of the automatic snapshot policy for master node system cloud disks. |
sp-2zej1nogjvovnz4z**** |
master_vswitch_ids
deprecated
|
array |
No |
[Deprecated] Use the The list of vSwitch IDs for master nodes. The number of vSwitches must be in the range of [1, 3]. To ensure high availability, select three vSwitches distributed across different zones. The number of specified instance types must match the value of |
|
|
string |
No |
The list of vSwitch IDs for master nodes. The number of vSwitches must be in the range of [1, 3]. To ensure high availability, select three vSwitches distributed across different zones. The number of specified instance types must match the value of |
vsw-2ze3ds0mdip0hdz8i**** |
|
| name |
string |
Yes |
The custom cluster name. The name can contain digits, Chinese characters, letters, and hyphens (-). It must be 1 to 63 characters in length and cannot start with a hyphen (-). |
cluster-demo |
nat_gateway
deprecated
|
boolean |
No |
[Deprecated] Use the |
true |
| node_cidr_mask |
string |
No |
The number of IP addresses per node, determined by specifying the network CIDR block. This parameter takes effect only for Flannel network type clusters. Default value: |
25 |
node_name_mode
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the |
null |
node_port_range
deprecated
|
string |
No |
The node service port range. Valid port range: [30000, 65535]. Default value: |
30000~32767 |
| nodepools |
array |
No |
The list of node pools. |
|
| nodepool |
No |
The node pool configuration. |
||
num_of_nodes
deprecated
|
integer |
No |
[Deprecated] Use the desired_size parameter under scaling_group in nodepool instead. The number of worker nodes. Valid values: 0 to 100. |
3 |
| operation_policy |
object |
No |
The automatic O&M policy of the cluster. |
|
| cluster_auto_upgrade |
object |
No |
The cluster auto upgrade configuration. |
|
| channel |
string |
No |
The cluster auto upgrade frequency. Valid values:
|
stable |
| enabled |
boolean |
No |
Specifies whether to enable cluster auto upgrade.
|
true |
os_type
deprecated
|
string |
No |
[Deprecated] For cluster control plane node configuration, use the image_type parameter under control_plane_config instead. For node pool configuration, use the image_type parameter under scaling_group in nodepool instead. The operating system platform type. Valid values:
Default value: |
Linux |
period
deprecated
|
integer |
No |
[Deprecated] The subscription duration. This parameter takes effect and is required only when charge_type is set to PrePaid. Valid values: 1, 2, 3, 6, 12, 24, 36, 48, and 60. Default value: 1. This parameter was changed on October 15, 2024. For more information, see Notice on behavior changes of the CreateCluster API parameters. |
1 |
period_unit
deprecated
|
string |
No |
[Deprecated] The billing cycle. This parameter is required when the billing method is set to PrePaid. Valid values: Month. Currently, only monthly billing cycles are supported. This parameter was changed on October 15, 2024. For more information, see Notice on behavior changes of the CreateCluster API parameters. |
Month |
platform
deprecated
|
string |
No |
[Deprecated] For node pool configuration, use the platform parameter under scaling_group in nodepool instead. The operating system distribution. Valid values:
Default value: |
CentOS |
pod_vswitch_ids
deprecated
|
array |
No |
[Deprecated] When the Terway network plugin is selected, you must specify vSwitches for Pod IP address allocation. Each Pod vSwitch corresponds to a worker node vSwitch, and the zones of the Pod vSwitches and worker node vSwitches must be the same. Note
The CIDR block mask of the Pod vSwitch should not exceed 19 and must not exceed 25. Otherwise, the number of Pod IP addresses available in the cluster network is very limited, which affects normal cluster operations. |
|
|
string |
No |
When the Terway network plugin is selected, you must specify vSwitches for Pod IP address allocation. Each Pod vSwitch corresponds to a worker node vSwitch, and the zones of the Pod vSwitches and worker node vSwitches must be the same. Note
The CIDR block mask of the Pod vSwitch should not exceed 19 and must not exceed 25. Otherwise, the number of Pod IP addresses available in the cluster network is very limited, which affects normal cluster operations. |
vsw-2ze97jwri7cei0mpw**** |
|
| profile |
string |
No |
When you set
|
Default |
| proxy_mode |
string |
No |
The kube-proxy mode.
Default value: |
ipvs |
rds_instances
deprecated
|
array |
No |
[Deprecated] For node pool configuration, use the rds_instances parameter under scaling_group in nodepool instead. The list of ApsaraDB RDS instances to which you want to add the cluster nodes to the whitelist. Add the container Pod CIDR block and node CIDR block to the RDS whitelist directly. Setting RDS instances may fail if the instances are not in a running state. |
|
|
string |
No |
The list of ApsaraDB RDS instances to which you want to add the cluster nodes to the whitelist. Add the container Pod CIDR block and node CIDR block to the RDS whitelist directly. Setting RDS instances may fail if the instances are not in a running state. |
rm-2zev748xi27xc**** |
|
| region_id |
string |
Yes |
The ID of the region where the cluster is deployed. For details, see Container service supported regions. |
cn-beijing |
| resource_group_id |
string |
No |
The ID of the resource group to which the cluster belongs. Use this parameter to isolate different resources. |
rg-acfm3mkrure**** |
| rrsa_config |
object |
No |
The RAM Roles for Service Accounts (RRSA) feature configuration. |
|
| enabled |
boolean |
No |
Specifies whether to enable the RRSA feature.
|
true |
runtime
deprecated
|
runtime |
No |
The container runtime used in the cluster. Supported runtimes include containerd, sandboxed containers, 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. |
|
| security_group_id |
string |
No |
The ID of an existing security group. This parameter is mutually exclusive with |
sg-bp1bdue0qc1g7k**** |
security_hardening_os
deprecated
|
boolean |
No |
[Deprecated] For cluster control plane configuration, use the security_hardening_os parameter under control_plane_config instead. For node pool configuration, use the security_hardening_os parameter under scaling_group in nodepool instead. Specifies whether to enable Alibaba Cloud OS security hardening. Valid values:
Default value: |
false |
| service_account_issuer |
string |
No |
A ServiceAccount is the access credential used for communication between a Pod and the cluster API Server. The For more information about |
kubernetes.default.svc |
| service_cidr |
string |
No |
The CIDR block for Services. Valid ranges: 10.0.0.0/16-24, 172.16-31.0.0/16-24, and 192.168.0.0/16-24. The CIDR block cannot overlap with the VPC CIDR block 10.1.0.0/21 or CIDR blocks used by existing Kubernetes clusters in the VPC. This value cannot be modified after the cluster is created. Default value: 172.19.0.0/20. |
172.21.0.0/20 |
service_discovery_types
deprecated
|
array |
No |
[Deprecated] The service discovery type within the cluster, used to specify the service discovery method in
Default value: not enabled. |
|
|
string |
No |
The service discovery type within the cluster, used to specify the service discovery method in
Default value: not enabled. |
PrivateZone |
|
| snat_entry |
boolean |
No |
Settings for configuring SNAT for the VPC. Valid values:
Note
If this is not enabled during cluster creation and Internet access is required later, you can manually enable it. Default value: |
false |
soc_enabled
deprecated
|
boolean |
No |
[Deprecated] For cluster control plane node configuration, use the soc_enabled parameter under control_plane_config instead. For node pool configuration, use the soc_enabled parameter under scaling_group in nodepool instead. Specifies whether to enable mlps 2.0 security hardening. For more information, see China classified protection compliance for ACK. Valid values:
Default value: |
false |
| ssh_flags |
boolean |
No |
Specifies whether to enable public SSH logon. This is used to log on to the master nodes of ACK dedicated clusters. This parameter does not take effect for managed clusters.
Default value: |
true |
| tags |
array |
No |
The node tags. Tag definition rules:
|
|
| tag |
No |
The node tags. Tag definition rules:
|
||
taints
deprecated
|
array |
No |
[Deprecated] For node pool configuration, use the taints parameter under kubernetes_config in nodepool instead. The node taint information. Taints and tolerations work together to prevent Pods from being scheduled to inappropriate nodes. For more information, see taint-and-toleration. |
|
| taint |
No |
The node taint information. Taints and tolerations work together to prevent Pods from being scheduled to inappropriate nodes. For more information, see taint-and-toleration. |
||
timeout_mins
deprecated
|
integer |
No |
[Deprecated] By default, the system does not roll back when cluster creation fails. You must manually clean up the failed cluster. The cluster creation timeout period, in minutes. Default value: |
60 |
| timezone |
string |
No |
The time zone used by the cluster. For more information, see Supported time zones. |
Asia/Shanghai |
| user_ca |
string |
No |
The custom cluster Certificate Authority (CA). |
-----BEGIN CERTIFICATE-----**** |
user_data
deprecated
|
string |
No |
[Deprecated] The custom node data. |
IyEvdXNyL2Jpbi9iYXNoCmVjaG8gIkhlbGxvIEFD**** |
| vpcid |
string |
No |
The VPC used by the cluster. You must provide a VPC when creating a cluster. |
vpc-2zeik9h3ahvv2zz95**** |
| vswitch_ids |
array |
No |
The vSwitches for cluster nodes. This parameter is required when creating a zero-node managed cluster. |
|
|
string |
No |
The vSwitches for cluster nodes. This parameter is required when creating a zero-node managed cluster. |
vsw-2ze3ds0mdip0hdz8i**** |
|
worker_auto_renew
deprecated
|
boolean |
No |
[Deprecated] For node pool configuration, use the auto_renew parameter under scaling_group in nodepool instead. Specifies whether to enable auto-renewal for worker nodes. This parameter takes effect only when
Default value: |
true |
worker_auto_renew_period
deprecated
|
integer |
No |
[Deprecated] For node pool configuration, use the auto_renew_period parameter under scaling_group in nodepool instead. The auto-renewal cycle for worker nodes. This parameter takes effect and is required only when the subscription billing method is selected. Valid values: 1, 2, 3, 6, and 12. |
1 |
worker_data_disks
deprecated
|
array<object> |
No |
[Deprecated] Use the data_disks parameter in scaling_group of nodepool instead. The combination of data cloud disk type, size, and other configurations for worker nodes. |
|
|
object |
No |
The data cloud disk configuration set. |
||
| category |
string |
Yes |
The data cloud disk type. |
cloud_essd |
| encrypted |
string |
No |
Specifies whether to encrypt data cloud disks. Valid values:
Default value: |
true |
| performance_level |
string |
No |
The performance level of node data cloud disks. This parameter takes effect only for ESSD cloud disks. |
PL1 |
| size |
string |
Yes |
The data cloud disk size. Valid values: 40 to 32767. Unit: GiB. |
120 |
worker_instance_charge_type
deprecated
|
string |
No |
[Deprecated] Use the instance_charge_type parameter in scaling_group of nodepool instead. The billing method for worker nodes. Valid values:
Default value: pay-as-you-go. |
PrePaid |
worker_instance_types
deprecated
|
array |
No |
[Deprecated] Use the instance_types parameter in scaling_group of nodepool instead. The instance configurations for worker nodes. |
|
|
string |
No |
The instance type for worker nodes. Specify at least one instance type. For more information, refer to Instance families. Note
The priority of an instance type decreases as its position in the array increases. If an instance cannot be created based on a higher-priority instance type, the system automatically uses the next-priority instance type. |
ecs.n4.large |
|
worker_period
deprecated
|
integer |
No |
[Deprecated] Use the period parameter in scaling_group of nodepool instead. The subscription duration for worker nodes. This parameter takes effect and is required only when Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Default value: 1. |
1 |
worker_period_unit
deprecated
|
string |
No |
[Deprecated] Use the period_unit parameter in scaling_group of nodepool instead. The billing cycle for worker nodes. This parameter is required when the billing method is Valid values: |
Month |
worker_system_disk_category
deprecated
|
string |
No |
[Deprecated] Use the system_disk_category parameter in scaling_group of nodepool instead. The system cloud disk type for worker nodes. For more information, refer to Block storage overview. Valid values:
Default value: |
cloud_efficiency |
worker_system_disk_performance_level
deprecated
|
string |
No |
[Deprecated] Use the system_disk_performance_level parameter in scaling_group of nodepool instead. When the system cloud disk is an ESSD, you can configure the performance level (PL) of the ESSD. For more information, refer to ESSD cloud disks. Valid values:
|
PL1 |
worker_system_disk_size
deprecated
|
integer |
No |
[Deprecated] Use the system_disk_size parameter in scaling_group of nodepool instead. The system cloud disk size for worker nodes. Unit: GiB. Valid values: [40,500]. The value of this parameter must be greater than or equal to max{40, ImageSize}. Default value: |
120 |
worker_system_disk_snapshot_policy_id
deprecated
|
string |
No |
[Deprecated] Use the system_disk_snapshot_policy_id parameter in scaling_group of nodepool instead. The ID of the automatic snapshot policy used by the system cloud disks of worker nodes. |
sp-2zej1nogjvovnz4z**** |
worker_vswitch_ids
deprecated
|
array |
No |
[Deprecated] Use the vswitch_ids parameter in scaling_group of nodepool instead. The list of vSwitches used by cluster nodes. Each node corresponds to one value. When you create a managed cluster with zero nodes, the |
|
|
string |
No |
The list of vSwitches for worker nodes. Valid values: [1,20]. To ensure high availability, select vSwitches in different zones. When you create a managed cluster with zero nodes, the |
vsw-2ze3ds0mdip0hdz8i**** |
|
zone_id
deprecated
|
string |
No |
[Deprecated] Use the The active zone ID of the region to which the cluster belongs. This parameter is specific to ACK managed clusters. When you create an ACK managed cluster, if |
cn-beiji**** |
| zone_ids |
array |
No |
The IDs of multiple zones in the region to which the cluster belongs. This parameter is specific to ACK managed clusters. |
|
|
string |
No |
The active zone ID of the region to which the cluster belongs. vSwitches are subject to automatic creation in this zone. When you create an ACK managed cluster, if |
cn-beijing-h |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| cluster_id |
string |
The cluster ID. |
cb95aa626a47740afbf6aa099b650**** |
| request_id |
string |
The request ID. |
687C5BAA-D103-4993-884B-C35E4314**** |
| task_id |
string |
The 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.