All Products
Search
Document Center

Container Service for Kubernetes:CreateCluster

Last Updated:Jul 16, 2026

Creates 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 ACK-related cloud resources.

Operation description

Generate OpenAPI request parameters from the console

When you call the CreateCluster operation to create a cluster, if the API call fails due to incorrect request parameter combinations, you can generate the required request parameter combinations from the console. Perform the following steps:

  1. Log on to the Container Service console and choose Cluster List in the left-side navigation pane.

  2. On the Cluster List page, click Cluster Template.

  3. 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.

  4. 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 to create the cluster, which you can copy and use.

Important Starting from July 4, 2026, some request parameters will no longer take effect. For details about the changes and override parameter descriptions, see Notice on changes to OpenAPI parameters and offline of OpenAPIs for ACK cluster management.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cs:CreateCluster

create

*Cluster

acs:cs:{#regionId}:{#accountId}:cluster/*

  • cs:ClusterType
  • cs:ClusterSpec
  • cs:ClusterProfile
  • cs:EnableSecretEncryption
  • cs:EnableApiServerEip
  • cs:EnableAddonLogtailDs
  • cs:EnableCoreControlPlaneComponentsLog
  • cs:AddonNames
  • cs:EnableSNAT
  • cs:EnableNodePoolPublicIP
None

Request syntax

POST /clusters HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body parameters.

cluster-demo

name

string

Yes

The custom cluster name. The name must be 1 to 63 characters in length and can contain digits, Chinese characters, letters, and hyphens (-). It cannot start with a hyphen (-).

cluster-demo

region_id

string

Yes

The region ID of the cluster. For more information, see Regions supported by Container Service.

cn-beijing

cluster_type

string

No

  • Kubernetes: ACK dedicated cluster.

  • ManagedKubernetes: ACK managed cluster types, including ACK managed clusters (Pro and Basic), ACK Serverless clusters (Pro and Basic), ACK Edge clusters (Pro and Basic), and ACK Lingjun clusters (Pro).

  • ExternalKubernetes: registered cluster.

Kubernetes

cluster_spec

string

No

After you set cluster_type to ManagedKubernetes and configure profile, you can further specify the cluster specification. Valid values:

  • ack.standard: Basic (selected by default when the value is empty)

  • ack.pro.small: Pro

  • ack.pro.xlarge: Pro XL

  • ack.pro.2xlarge: Pro 2XL

  • ack.pro.4xlarge: Pro 4XL (requires contacting customer service to enable the whitelist)

Pro XL, Pro 2XL, and Pro 4XL are three tiers provided by ACK Pro Provisioned Control Plane. By pre-allocating and fixing control plane resources, they ensure that API concurrency and Pod scheduling capabilities remain at a deterministic high level, suitable for AI training and inference, ultra-large-scale clusters, and mission-critical workloads.

For information about the management fees for Pro and Provisioned Control Plane clusters, see Cluster management fee.

ack.pro.small

profile

string

No

When you set cluster_type to ManagedKubernetes (ACK managed cluster types), you can further specify the cluster subtype.

  • Default: ACK managed cluster, including ACK clusters (Pro and Basic).

  • Edge: ACK Edge cluster, including ACK Edge clusters (Pro and Basic).

  • Serverless: ACK Serverless cluster, including ACK Serverless clusters (Pro and Basic).

  • Lingjun: ACK Lingjun cluster, available in Pro.

Default

kubernetes_version

string

No

The cluster version, which is consistent with the Kubernetes community baseline version. We recommend that you select the latest version. If you do not specify this parameter, the latest version is used by default.

You can create clusters of the latest three 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

auto_mode

object

No

The intelligent managed mode configuration.

enable

boolean

No

Specifies whether to enable intelligent managed mode.

  • true: Enable.

  • false: Do not enable.

true

tags

array

No

The node tags. Tag definition rules:

  • Tags are composed of case-sensitive key-value pairs. You can set up to 20 tags.

  • Tag keys cannot be duplicated and can be up to 64 characters in length. Tag values can be empty and can be up to 128 characters in length. Tag keys and tag values cannot start with "aliyun", "acs:", "https://", or "http://". For more information, see Labels and Selectors.

tag

No

The node tags. Tag definition rules:

  • Tags are composed of case-sensitive key-value pairs. You can set up to 20 tags.

  • Tag keys cannot be duplicated and can be up to 64 characters in length. Tag values can be empty and can be up to 128 characters in length. Tag keys and tag values cannot start with "aliyun", "acs:", "https://", or "http://". For more information, see Labels and Selectors.

resource_group_id

string

No

The resource group ID of the cluster, used to isolate different resources.

rg-acfm3mkrure****

deletion_protection

boolean

No

Specifies whether to enable cluster deletion protection, which prevents the cluster from being accidentally deleted through the console or API. Valid values:

  • true: Enable cluster deletion protection. The cluster cannot be deleted through the console or API.

  • false: Do not enable cluster deletion protection. The cluster can be deleted through the console or API.

Default value: false.

true

zone_ids

array

No

The zone IDs of the region where the cluster resides. This parameter is specific to ACK managed cluster types.

string

No

The zone ID of the region where the cluster resides. A vSwitch is automatically created in this zone through automatic creation.

When creating an ACK managed cluster type, if vpc_id and vswitch_ids are not specified, specify zone_ids for the cluster to automatically create a VPC and network resources in multiple active zones. If vpc_id and vswitch_ids are specified, this parameter does not take effect.

cn-beijing-h

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 field is required when creating a zero-node managed cluster.

string

No

The vSwitches for cluster nodes. This field is required when creating a zero-node managed cluster.

vsw-2ze3ds0mdip0hdz8i****

ip_stack

string

No

The IP protocol stack of the cluster.

可选值: ipv4(单栈) dual(双栈),默认值为ipv4。

pod_vswitch_ids deprecated

array

No

This field is deprecated. When you select Terway as the network plugin, you must assign vSwitches for Pod IP allocation. Each Pod vSwitch corresponds to a worker node vSwitch, and the Pod vSwitch and the worker node vSwitch must be in the same zone.

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 usage.

string

No

When you select Terway as the network plugin, you must assign vSwitches for Pod IP allocation. Each Pod vSwitch corresponds to a worker node vSwitch, and the Pod vSwitch and the worker node vSwitch must be in the same zone.

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 usage.

vsw-2ze97jwri7cei0mpw****

container_cidr

string

No

The Pod network CIDR block. It 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, 192.168.0.0/16. It cannot overlap with the VPC CIDR block or CIDR blocks used by existing Kubernetes clusters in the VPC. It cannot be modified after creation.

For information about cluster network planning, see ACK managed cluster network planning.

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-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 CIDR blocks used by existing Kubernetes clusters in the VPC. It cannot be modified after creation.

Default value: 172.19.0.0/20.

172.21.0.0/20

security_group_id

string

No

The security group ID. Specify this parameter when creating a cluster with an existing security group. Mutually exclusive with is_enterprise_security_group. Cluster nodes are automatically added to this security group.

sg-bp1bdue0qc1g7k****

is_enterprise_security_group

boolean

No

Specifies whether to use automatic creation of an advanced security group. Takes effect when security_group_id is empty.

Note

When using a basic security group, the total number of nodes and Terway Pods in the cluster cannot exceed 2000. Therefore, when creating a Terway network type cluster, we recommend using an advanced security group.

  • true: Create and use an advanced security group.

  • false: Use a basic security group.

Default value: true.

true

snat_entry

boolean

No

Settings for configuring SNAT for the VPC. Valid values:

  • true: Use automatic creation of a NAT gateway and configure SNAT rules. Set this to true if nodes and applications in the cluster need to access the Internet.

  • false: Do not create a NAT gateway or SNAT rules. Nodes and applications in the cluster cannot access the Internet.

Note

If this is not enabled during cluster creation and Internet access is needed later, you can manually enable it.

Default value: false.

false

control_plane_endpoints_config

object

No

The cluster endpoint configuration.

load_balancers_config

array<object>

No

The cluster endpoint configuration. When this field is specified, the endpoint_public_access and load_balancer_id parameters do not take effect. ACK only supports automatic creation of NLB instances. To specify a CLB/NLB, use load_balancers_config to specify the instance ID.

object

No

The cluster access load balancing configuration.

endpoint_type

string

No

The endpoint type.

private

load_balancer_id

string

No

The NLB instance ID.

nlb-0ogk9aaxxxxxxx

internal_dns_config

object

No

The internal DNS configuration for the cluster. Applicable 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. When 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 where the internal domain name record resolution takes effect.

string

No

The VPCs where the internal domain name record resolution takes effect.

vpc-xxxx

endpoint_public_access

boolean

No

Specifies whether to public network access. Exposes the API Server through an EIP to public network access to the cluster.

  • true: Public network access.

  • false: Do not public network access. If not enabled, the cluster API Server cannot be accessed from the Internet.

Default value: false.

true

load_balancer_id

string

No

The CLB instance ID for API Server access. When this parameter is specified, automatic creation of the API Server CLB is not performed.

Note

Ensure 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****

ssh_flags

boolean

No

Specifies whether to enable public SSH logon. Used to log on to the master nodes of ACK dedicated clusters. This parameter does not take effect for managed clusters.

  • true: Enable.

  • false: Do not enable.

Default value: false.

true

timezone

string

No

The time zone used by the cluster. See Supported time zones.

Asia/Shanghai

node_cidr_mask

string

No

The number of IP addresses per node, determined by specifying the network CIDR mask. Only takes effect for Flannel network type clusters.

Default value: 26.

25

proxy_mode

string

No

The kube-proxy mode.

  • iptables: A mature and stable kube-proxy mode. Service discovery and load balancing for Kubernetes Services are configured using iptables rules. However, performance is average and significantly affected by scale. Suitable for clusters with a small number of Services.

  • ipvs: A high-performance kube-proxy mode. Service discovery and load balancing for Kubernetes Services are configured using the Linux IPVS module. Suitable for clusters with a large number of Services that require high-performance load balancing.

  • nftables: A next-generation kube-proxy mode that implements Service discovery and load balancing based on Linux nftables, serving as a modern replacement for iptables. Compared to iptables, nftables offers better network performance, more efficient rule updates, and improved behavior in large-scale Service scenarios.
    Only supported for clusters running version 1.35 or later. The Kubernetes community deprecated IPVS starting from version 1.35. For new clusters, use nftables for longer-term community support.

Default value: ipvs.

ipvs

controlplane_log_ttl

string

No

The number of days for log retention of 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 for log storage or have the system automatically create a project. If you choose automatic creation, a Simple Log Service project named k8s-log-{ClusterID} is created.

k8s-log-xxx

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"]

audit_log_config

object

No

The cluster audit log configuration.

enabled

boolean

No

Specifies whether to enable the cluster audit log feature.

  • true: Enable.

  • false: Do not enable.

true

sls_project_name

string

No

The SLS Project that contains the cluster audit log Logstore.

  • Default value: k8s-log-{clusterid}.

  • After the cluster audit log feature is enabled, a Logstore for cluster audit logs is created in the specified SLS Project.

k8s-log-c2345xxxxxxxxxxxx

rrsa_config

object

No

The RRSA configuration.

enabled

boolean

No

Specifies whether to enable RRSA.

  • true: Enable.

  • false: Do not enable.

true

cluster_domain

string

No

The cluster local domain.

Naming rules: The domain consists of one or more parts separated by periods (.). Each part can be up to 63 characters in length 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 only takes effect in ACK Pro managed clusters.

0fe64791-55eb-4fc7-84c5-c6c7cdca****

service_account_issuer

string

No

A ServiceAccount is the access credential for communication between a Pod and the cluster API Server. The service-account-issuer is the issuer identity in the serviceaccount token, which is the iss field in the token payload.

For more information about ServiceAccount, see Deploy service account token volume projection.

kubernetes.default.svc

api_audiences

string

No

A ServiceAccount is the access credential for communication between a Pod and the cluster API Server. The api-audiences is the valid request token identity, used by the apiserver to authenticate whether a request token is valid. Multiple audiences are supported, separated by commas (,).

For more information about ServiceAccount, see Deploy service account token volume projection.

kubernetes.default.svc

extra_sans

array

No

The custom API Server certificate SAN (Subject Alternative Name).

string

No

The certificate SAN. Supports custom IP addresses or domain names.

192.168.xx.xx

maintenance_window maintenance_window

No

The cluster maintenance window.

operation_policy

object

No

The cluster automatic O&M policy.

cluster_auto_upgrade

object

No

The cluster auto-upgrade configuration.

enabled

boolean

No

Specifies whether to enable cluster auto-upgrade.

  • true: Enable.

  • false: Do not enable.

true

channel

string

No

The cluster auto-upgrade frequency. Valid values:

  • patch: Automatically upgrades to the available patch version of the current minor version. The new Kubernetes version does not contain breaking changes.

  • stable: Automatically upgrades to the latest patch version of the second-latest minor version. The new Kubernetes version may involve API and feature changes, but its stability has been widely validated.

  • rapid: Automatically upgrades to the latest patch version of the latest minor version to get new Kubernetes community features faster.

stable

addons

array

No

The list of cluster components. Specify the components to install when creating a cluster using addons.

Network component: Required. Choose between Flannel and Terway network types:

  • Flannel network: [{"name":"flannel","config":""}].

  • Terway network: [{"name": "terway-eniip","config": ""}].

Storage component: Optional. Only the csi type is supported:

csi: [{"name":"csi-plugin","config": ""},{"name": "csi-provisioner","config": ""}].

Log component: Optional. We recommend that you enable this component. If the log service is not enabled, the cluster audit feature is unavailable.

  • Use an existing SLS Project: [{"name": "loongcollector","config": "{"IngressDashboardEnabled":"true","sls_project_name":"your_sls_project_name"}"}].

  • Create a new SLS Project: [{"name": "loongcollector","config": "{"IngressDashboardEnabled":"true"}"}].

Ingress component: Optional. ACK dedicated clusters install the Ingress component nginx-ingress-controller by default.

  • Install Ingress with public network access: [{"name":"nginx-ingress-controller","config":"{"IngressSlbNetworkType":"internet"}"}].

  • Disable default Ingress installation: [{"name": "nginx-ingress-controller","config": "","disabled": true}].

Event Center: Optional. Enabled by default.

The Event Center provides storage, query, and alerting capabilities for Kubernetes events. The Logstore associated with the Kubernetes Event Center is free for 90 days. For more information about the free policy, see Create and use the Kubernetes event center.

Example of enabling the Event Center: [{"name":"ack-node-problem-detector","config":"{"sls_project_name":"your_sls_project_name"}"}].

addon

No

The list of cluster components. Specify the components to install when creating a cluster using addons.

nodepools

array

No

The list of node pools.

nodepool

No

The node pool configuration.

user_ca

string

No

The custom cluster CA.

-----BEGIN CERTIFICATE-----****

control_plane_config

object

No

The ACK dedicated cluster control plane configuration.

charge_type

string

No

The billing method of control plane nodes.

  • PrePaid: Subscription.

  • PostPaid: Pay-as-you-go.

Default value: PostPaid.

PostPaid

period

integer

No

The subscription duration of control plane nodes. Valid and required when the billing method is PrePaid.

Valid values: {1, 2, 3, 6, 12, 24, 36, 48, 60}. Unit: months.

Default value: 1.

1

period_unit

string

No

The subscription period unit of control plane nodes. Valid and required when the billing method is PrePaid.

Valid value: Month. Currently, only monthly periods are supported.

Month

auto_renew

boolean

No

Specifies whether to enable auto-renewal for control plane nodes. Takes effect when the billing method is PrePaid.

  • true: Enable auto-renewal.

  • false: Do not enable auto-renewal.

Default value: true.

true

auto_renew_period

integer

No

The auto-renewal period of control plane nodes.

Valid values: {1, 2, 3, 6, 12}. Unit: months.

Default value: 1.

1

instance_types

array

No

The node instance types.

string

No

The node instance type.

ecs.g6.large

image_type

string

No

The operating system image type.

AliyunLinux3

image_id

string

No

The image ID.

aliyun_3_x64_20G_alibase_20240819.vhd

key_pair

string

No

The key pair name. Mutually exclusive with login_password.

ack

login_password

string

No

The SSH logon password. Must be 8 to 30 characters in length and contain at least three of the following: uppercase letters, lowercase letters, digits, and special characters. Mutually exclusive with key_pair.

********

system_disk_category

string

No

The node system disk type.

  • cloud_efficiency: Ultra disk.

  • cloud_ssd: Standard SSD.

  • cloud_essd: ESSD.

  • cloud_auto: ESSD AutoPL.

  • `cloud_essd

cloud_ssd

system_disk_size

integer

No

The size of the node system cloud disk.

Valid values: [40,500]. Unit: GiB.

Default value: 120.

120

system_disk_snapshot_policy_id

string

No

The automatic snapshot backup policy for nodes.

sp-2zej1nogjvovnz4z****

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 the node system cloud disk.

Valid values: 0 to min{50,000, 1000 × capacity - baseline performance}. Baseline performance = min{1,800 + 50 × capacity, 50000}.

This parameter is supported only when system_disk_category is set to cloud_auto.

1000

system_disk_bursting_enabled

boolean

No

Specifies whether to enable burst (performance burst) for the node system cloud disk.

  • true: Enabled.

  • false: Not enabled.

This parameter is supported only when system_disk_category is set to cloud_auto.

true

deploymentset_id

string

No

The deployment set ID.

ds-bp10b35imuam5amw****

cloud_monitor_flags

boolean

No

Specifies whether to install CloudMonitor on nodes.

  • true: Installs the CloudMonitor agent.

  • false: Does not install the CloudMonitor agent.

Default value: false.

false

instance_metadata_options InstanceMetadataOptions

No

The instance metadata access configuration for ECS instances.

soc_enabled

boolean

No

Specifies whether to enable MLPS 2.0 security hardening.

  • true: Enables MLPS 2.0 security hardening.

  • false: Does not enable MLPS 2.0 security hardening.

Default value: false.

false

security_hardening_os

boolean

No

Specifies whether to enable Alibaba Cloud OS security hardening.

  • true: Enables Alibaba Cloud OS security hardening.

  • false: Does not enable Alibaba Cloud OS security hardening.

Default value: false.

false

cpu_policy

string

No

The node CPU management policy.

  • static: Allows pods with certain resource characteristics on the node to be granted enhanced CPU affinity and exclusivity.

  • none: Uses the existing default CPU affinity scheme.

Default value: none.

none

runtime

string

No

This field is deprecated. The container runtime for control plane nodes. Valid values:

containerd: The Containerd runtime, which supports all cluster versions.

containerd

node_port_range

string

No

This field is deprecated. The node service port range.

30000-32767

size

integer

No

The number of control plane nodes.

Valid values: 3 or 5.

3

custom_san deprecated

string

No

This field is deprecated. Use the extra_sans parameter instead.

The custom certificate Subject Alternative Name (SAN). Separate multiple IP addresses or domain names with commas (,).

cs.aliyun.com

runtime deprecated runtime

No

The container runtime of 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 among Docker, containerd, and sandboxed container runtimes.

node_name_mode deprecated

string

No

This field is deprecated. For node pool configurations, use the node_name_mode parameter under kubernetes_config in nodepool instead.

null

user_data deprecated

string

No

This field is deprecated. The custom node data.

IyEvdXNyL2Jpbi9iYXNoCmVjaG8gIkhlbGxvIEFD****

image_id deprecated

string

No

This field is deprecated. For control plane configurations, use the image_id parameter under control_plane_config instead. For node pool configurations, use the image_id parameter under scaling_group in nodepool instead.

The custom node image. 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****

rds_instances deprecated

array

No

This field is deprecated. For node pool configurations, use the rds_instances parameter under scaling_group in nodepool instead.

The list of RDS instances. Select the RDS instances that you want to add to the whitelist. Go to the RDS console to add the container pod CIDR block and node CIDR block. Configuring RDS instances may fail if the instances are not in the running state.

string

No

The list of RDS instances. Select the RDS instances that you want to add to the whitelist. Go to the RDS console to add the container pod CIDR block and node CIDR block. Configuring 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 configurations, 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.

cloud_monitor_flags deprecated

boolean

No

This field is deprecated. For control plane node configurations, use the cloud_monitor_flags parameter under control_plane_config instead. For node pool configurations, use the cms_enabled parameter under kubernetes_config in nodepool instead.

Specifies whether to install the CloudMonitor agent on the cluster. Valid values:

  • true: Installs the CloudMonitor agent.

  • false: Does not install the CloudMonitor agent.

Default value: false.

false

platform deprecated

string

No

This field is deprecated. For node pool configurations, use the platform parameter under scaling_group in nodepool instead.

The operating system distribution. Valid values:

  • CentOS

  • AliyunLinux

  • QbootAliyunLinux

  • Qboot

  • Windows

  • WindowsCore

Default value: CentOS.

CentOS

os_type deprecated

string

No

This field is deprecated. For control plane node configurations, use the image_type parameter under control_plane_config instead. For node pool configurations, use the image_type parameter under scaling_group in nodepool instead.

The operating system platform type. Valid values:

  • Windows

  • Linux

Default value: Linux.

Linux

soc_enabled deprecated

boolean

No

This field is deprecated. For control plane node configurations, use the soc_enabled parameter under control_plane_config instead. For node pool configurations, use the soc_enabled parameter under scaling_group in nodepool instead.

MLPS 2.0 security hardening. For more information, see ACK MLPS 2.0 security hardening usage instructions.

Valid values:

  • true: Enables MLPS 2.0 security hardening.

  • false: Does not enable MLPS 2.0 security hardening.

Default value: false.

false

security_hardening_os deprecated

boolean

No

This field is deprecated. For control plane configurations, use the security_hardening_os parameter under control_plane_config instead. For node pool configurations, use the security_hardening_os parameter under scaling_group in nodepool instead.

Alibaba Cloud OS security hardening. Valid values:

  • true: Enables Alibaba Cloud OS security hardening.

  • false: Does not enable Alibaba Cloud OS security hardening.

Default value: false.

false

cis_enabled deprecated

boolean

No

This field is deprecated. For control plane configurations, use the security_hardening_os parameter under control_plane_config instead. For node pool configurations, use the security_hardening_os parameter under scaling_group in nodepool instead.

false

cpu_policy deprecated

string

No

This field is deprecated. For control plane configurations, use the cpu_policy parameter under control_plane_config instead. For node pool configurations, use the cpu_policy parameter under kubernetes_config in nodepool instead.

The node CPU management policy. The following policies are supported for cluster versions 1.12.6 and later:

  • static: Allows pods with certain resource characteristics on the node to be granted enhanced CPU affinity and exclusivity.

  • none: Uses the existing default CPU affinity scheme.

Default value: none.

none

node_port_range deprecated

string

No

The node service port range. Valid values: [30000,65535].

Default value: 30000-32767.

30000~32767

master_vswitch_ids deprecated

array

No

This field is deprecated. Use the vswitch_ids parameter instead.

The list of vSwitch IDs for master nodes. The number of vSwitches ranges from [1,3]. To ensure high availability, select three vSwitches distributed across different zones.

The number of specified instance types must match the value of master_count and correspond one-to-one with the elements in master_vswitch_ids.

string

No

The list of vSwitch IDs for master nodes. The number of vSwitches ranges from [1,3]. To ensure high availability, select three vSwitches distributed across different zones.

The number of specified instance types must match the value of master_count and correspond one-to-one with the elements in master_vswitch_ids.

vsw-2ze3ds0mdip0hdz8i****

key_pair deprecated

string

No

This field is deprecated. For control plane configurations, use the key_pair parameter under control_plane_config instead. For node pool configurations, use the key_pair parameter under scaling_group in nodepool instead.

The key pair name. Mutually exclusive with login_password.

security-key

login_password deprecated

string

No

This field is deprecated. For control plane configurations, use the login_password parameter under control_plane_config instead. For node pool configurations, use the login_password parameter under scaling_group in nodepool instead.

The SSH logon password. Mutually exclusive with key_pair. The password must be 8 to 30 characters in length and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.

null

master_count deprecated

integer

No

This field is deprecated. For control plane configurations, use the size parameter under control_plane_config instead.

The number of master nodes. Valid values: 3 or 5.

Default value: 3.

3

master_instance_types deprecated

array

No

This field is deprecated. For control plane configurations, use the instance_types parameter under control_plane_config instead.

The instance types for master nodes. For more information, see Instance families.

string

No

The instance types for master nodes. The number of specified instance types must match the value of master_count and correspond one-to-one with the elements in master_instance_types. For more information, see Instance families.

ecs.n4.xlarge

master_system_disk_category deprecated

string

No

This field is deprecated. For control plane configurations, use the system_disk_category parameter under control_plane_config instead.

The system cloud disk type for master nodes. Valid values:

  • cloud_efficiency: ultra cloud disk.

  • cloud_ssd: standard SSD.

  • cloud_essd: ESSD.

Default value: cloud_ssd. The default value may vary by zone.

cloud_ssd

master_system_disk_size deprecated

integer

No

This field is deprecated. For control plane configurations, use the system_disk_size parameter under control_plane_config instead.

The system cloud disk size for master nodes. Valid values: [40,500]. Unit: GiB.

Default value: 120.

120

master_system_disk_performance_level deprecated

string

No

This field is deprecated. For control plane configurations, use the system_disk_performance_level parameter under control_plane_config instead.

The performance level of the system cloud disk for cluster master nodes. 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

master_system_disk_snapshot_policy_id deprecated

string

No

This field is deprecated. For control plane configurations, use the system_disk_snapshot_policy_id parameter under control_plane_config instead.

The automatic snapshot policy ID for the master node system cloud disk.

sp-2zej1nogjvovnz4z****

master_instance_charge_type deprecated

string

No

This field is deprecated. For control plane configurations, use the instance_charge_type parameter under control_plane_config instead.

The billing method for master nodes. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

Default value: PostPaid.

PrePaid

master_period_unit deprecated

string

No

This field is deprecated. For control plane configurations, use the period_unit parameter under control_plane_config instead.

The billing period unit for master nodes. This parameter is required when the billing method is PrePaid.

Valid values: Month. Only monthly billing is supported.

Month

master_period deprecated

integer

No

This field is deprecated. For control plane configurations, use the unit parameter under control_plane_config instead.

The subscription duration for master nodes. This parameter takes effect and is required only when master_instance_charge_type is set to PrePaid.

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 configurations, use the auto_renew parameter under control_plane_config instead.

Specifies whether to enable auto-renewal for master nodes. This parameter takes effect only when master_instance_charge_type is set to PrePaid. Valid values:

  • true: Enables auto-renewal.

  • false: Disables auto-renewal.

Default value: true.

true

master_auto_renew_period deprecated

integer

No

This field is deprecated. For control plane configurations, use the auto_renew_period parameter under control_plane_config instead.

The auto-renewal period for master nodes. This parameter takes effect and is required when the subscription billing method is selected.

Valid values: {1, 2, 3, 6, 12}.

Default value: 1.

1

num_of_nodes deprecated

integer

No

This field is deprecated. For node pool configurations, use the desired_size parameter under scaling_group in nodepool instead.

The number of worker nodes. Valid values: [0, 100].

3

worker_vswitch_ids deprecated

array

No

This field is deprecated. For node pool configurations, use the vswitch_ids parameter under scaling_group in nodepool instead.

The list of vSwitches used by cluster nodes. Each node corresponds to one value.

When creating a zero-node managed cluster, the worker_vswitch_ids field is not required, but you must provide vswitch_ids.

string

No

The list of vSwitches for worker nodes. Valid values: [1,20]. To ensure high availability, select vSwitches in different zones.

When creating a zero-node managed cluster, the worker_vswitch_ids field is not required, but you must provide vswitch_ids.

vsw-2ze3ds0mdip0hdz8i****

worker_instance_types deprecated

array

No

This field is deprecated. For node pool configurations, use the instance_types parameter under scaling_group in nodepool instead.

The instance configuration for worker nodes.

string

No

The instance types for worker nodes. Specify at least one instance type. For more information, see Instance families.

Note

The priority of instance types decreases as their position in the array increases. When an instance cannot be created with a higher-priority instance type, the system automatically selects the next instance type in the list.

ecs.n4.large

worker_system_disk_category deprecated

string

No

This field is deprecated. For node pool configurations, use the system_disk_category parameter under scaling_group in nodepool instead.

The system cloud disk type for worker nodes. For more information, see Block storage overview.

Valid values:

  • cloud_efficiency: ultra cloud disk.

  • cloud_ssd: standard SSD.

Default value: cloud_ssd.

cloud_efficiency

worker_system_disk_size deprecated

integer

No

This field is deprecated. For node pool configurations, use the system_disk_size parameter under scaling_group in nodepool instead.

The system cloud disk size for worker nodes. Unit: GiB.

Valid values: [40,500].

The value must be greater than or equal to max{40, ImageSize}.

Default value: 120.

120

worker_system_disk_snapshot_policy_id deprecated

string

No

This field is deprecated. For node pool configurations, use the system_disk_snapshot_policy_id parameter under scaling_group in nodepool instead.

The automatic snapshot policy ID for the worker node system cloud disk.

sp-2zej1nogjvovnz4z****

worker_system_disk_performance_level deprecated

string

No

This field is deprecated. For node pool configurations, use the system_disk_performance_level parameter under scaling_group in nodepool instead.

When the system cloud disk is an ESSD, you can set the performance level (PL) of the ESSD. For more information, see ESSD cloud disks.

Valid values:

  • PL0

  • PL1

  • PL2

  • PL3

PL1

worker_data_disks deprecated

array<object>

No

This field is deprecated. For node pool configurations, use the data_disks parameter under scaling_group in nodepool instead.

The data cloud disk type, size, and other configurations for worker nodes.

object

No

The data cloud disk configuration.

category

string

Yes

The data cloud disk type.

cloud_essd

encrypted

string

No

Specifies whether to encrypt the data cloud disk. Valid values:

  • true: Encrypts the data cloud disk.

  • false: Does not encrypt the data cloud disk.

Default value: false.

true

size

string

Yes

The data cloud disk size. Valid values: 40 to 32767. Unit: GiB.

120

performance_level

string

No

The performance level of the node data cloud disk. This parameter takes effect only for ESSD cloud disks.

PL1

worker_instance_charge_type deprecated

string

No

This field is deprecated. For node pool configurations, use the instance_charge_type parameter under scaling_group in nodepool instead.

The billing method for worker nodes. Valid values:

  • PrePaid: subscription.

  • PostPaid: pay-as-you-go.

Default value: pay-as-you-go.

PrePaid

worker_period_unit deprecated

string

No

This field is deprecated. For node pool configurations, use the period_unit parameter under scaling_group in nodepool instead.

The billing period unit for worker nodes. This parameter is required when the billing method is PrePaid.

Valid values: Month. Only monthly billing is supported.

Month

worker_period deprecated

integer

No

This field is deprecated. For node pool configurations, use the period parameter under scaling_group in nodepool instead.

The subscription duration for worker nodes. This parameter takes effect and is required only when `worker_

1

worker_auto_renew deprecated

boolean

No

该字段已废弃】节点池配置请使用nodepoolscaling_group下的auto_renew参数代替。

Worker 节点是否开启自动续费,当worker_instance_charge_type取值为PrePaid时才生效,取值:

  • true:自动续费。

  • false:不自动续费。

默认值:true

true

worker_auto_renew_period deprecated

integer

No

该字段已废弃】节点池配置请使用nodepoolscaling_group下的auto_renew_period参数代替。

Worker 节点自动续费周期,当选择包年包月付费类型时才生效,且为必选值。

取值范围:{1, 2, 3, 6, 12}。

1

instances deprecated

array

No

该字段已废弃】创建集群时不支持选择已有节点,如需添加已有节点到集群,请先创建节点池,并调用 AttachInstancesToNodePool 接口操作。

使用已有节点创建集群时,需要指定 ECS 实例列表,该实例会作为 Worker 节点加入集群。

Note

使用已有实例创建集群时,该字段必填。

string

No

使用已有节点创建集群时,需要指定 ECS 实例列表,该实例会作为 Worker 节点加入集群。

Note

使用已有实例创建集群时,该字段必填。

i-2ze4zxnm36vq00xn****

format_disk deprecated

boolean

No

该字段已废弃】创建集群时不支持选择已有节点,如需添加已有节点到集群,请先创建节点池,并调用 AttachInstancesToNodePool 接口操作。

使用已有实例创建集群时,是否对实例进行数据盘挂载,取值:

  • true:将容器和镜像存储在数据盘,数据盘内原有数据将丢失,请注意备份数据。

  • false:不将容器和镜像存储在数据盘。

默认值:false

数据盘挂载规则:

  • 如果 ECS 已挂载数据盘,且最后一块数据盘的文件系统未初始化,系统会自动将该数据盘格式化为 ext4,用来存放内容/var/lib/docker、/var/lib/kubelet。

  • 如果 ECS 未挂载数据盘,则不会挂载新的数据盘。

false

keep_instance_name deprecated

boolean

No

该字段已废弃】创建集群时不支持选择已有节点,如需添加已有节点到集群,请先创建节点池,并调用 AttachInstancesToNodePool 接口操作。

使用已有实例创建集群时,是否保留实例名称。

  • true:保留。

  • false:不保留,会用系统规则进行替换。

默认值:true

true

service_discovery_types deprecated

array

No

该字段已废弃】集群内服务发现类型,用于在ACK Serverless集群中指定服务发现方式。

  • CoreDNS:使用 Kubernetes 原生标准服务发现组件 CoreDNS,需要在集群部署一组容器用于 DNS 解析。默认采用两个 0.25 Core 512 MiB 规格的 ECI 实例。

  • PrivateZone:使用阿里云 PrivateZone 产品提供服务发现能力,需要开启 PrivateZone 服务。

默认值:不开启。

string

No

集群内服务发现类型,用于在ACK Serverless集群中指定服务发现方式。

  • CoreDNS:使用 Kubernetes 原生标准服务发现组件 CoreDNS,需要在集群部署一组容器用于 DNS 解析。默认采用两个 0.25 Core 512 MiB 规格的 ECI 实例。

  • PrivateZone:使用阿里云 PrivateZone 产品提供服务发现能力,需要开启 PrivateZone 服务。

默认值:不开启。

PrivateZone

nat_gateway deprecated

boolean

No

该字段已废弃】请使用参数snat_entry代替。

true

zone_id deprecated

string

No

该字段已废弃】请使用zone_ids参数代替。

集群所属地域的可用区 ID。此参数为 ACK 托管类的集群特有参数。

当创建 ACK 托管类的集群时,如果未指定vpc_idvswitch_ids,必须为集群指定zone_id,用于自动在该可用区创建 VPC 网络资源;指定vpc_idvswitch_ids时,该参数无效。

cn-beiji****

logging_type deprecated

string

No

该字段已废弃】集群开启日志服务,只针对 ACK Serverless 集群生效,且取值必须是SLS

SLS

disable_rollback deprecated

boolean

No

该字段已废弃】集群创建失败时默认不会进行回滚,您需要自行清理创建失败的集群。

集群创建失败是否回滚。取值:

  • true:当集群创建失败时,进行回滚操作。

  • false:当集群创建失败时,不进行回滚操作。

默认值:true

true

timeout_mins deprecated

integer

No

该字段已废弃】集群创建失败时默认不会进行回滚,您需要自行清理创建失败的集群。

集群创建超时时间,单位分钟。

默认值:60

60

image_type deprecated

string

No

该字段已废弃】集群控制面配置请使用control_plane_config下的image_type参数代替;节点池配置请使用nodepoolscaling_group下的image_type参数代替。

操作系统发行版类型,推荐使用该字段指定节点操作系统。取值:

  • CentOS

  • AliyunLinux

  • AliyunLinux Qboot

  • AliyunLinuxUEFI

  • AliyunLinux3

  • Windows

  • WindowsCore

  • AliyunLinux3Arm64

  • ContainerOS

默认值:CentOS

AliyunLinux

load_balancer_spec deprecated

string

No

该参数已废弃】CLB 按使用量计费,该参数不生效。

负载均衡规格,取值:

  • slb.s1.small

  • slb.s2.small

  • slb.s2.medium

  • slb.s3.small

  • slb.s3.medium

  • slb.s3.large

默认值:slb.s2.small

slb.s2.small

enable_rrsa deprecated

boolean

No

该字段已废弃】请使用参数rrsa_config代替。

是否启用 RRSA 功能。

  • true:开启。

  • false:不开启。

false

charge_type deprecated

string

No

该字段已废弃

API Server 所使用的 CLB 实例的付费类型,默认值为 PostPaid。取值:

  • PostPaid:按量付费。

  • PrePaid:包年包月,新建 CLB 付费类型已不支持,存量不影响。

Important

详细信息请参见传统型负载均衡 CLB 计费项调整公告

PostPaid

period_unit deprecated

string

No

该字段已废弃

付费周期,当付费类型为 PrePaid 的时候,需要指定周期。

取值:Month,当前仅支持以月为周期。

该字段于 2024 年 10 月 15 日存在变更,更多信息,请参见关于集群创建接口 CreateCluster 参数行为变更的公告

Month

period deprecated

integer

No

该字段已废弃

购买时长。包年包月时长,当 charge_type 取值为 PrePaid 时才生效,且为必选值。

取值范围:{1, 2, 3, 6, 12, 24, 36, 48, 60}。

默认值:1。

该字段于 2024 年 10 月 15 日存在变更,更多信息,请参见关于集群创建接口 CreateCluster 参数行为变更的公告

1

auto_renew deprecated

boolean

No

该字段已废弃

是否开启自动续费,当charge_type取值为PrePaid时才生效。取值:

  • true:自动续费。

  • false:不自动续费。

默认值:false

该字段于 2024 年 10 月 15 日存在变更,更多信息,请参见关于集群创建接口 CreateCluster 参数行为变更的公告

true

auto_renew_period deprecated

integer

No

该字段已废弃

自动续费周期,当选择预付费和自动续费时才生效。当PeriodUnit=Month时,取值范围:{1, 2, 3, 6, 12}。

默认值:1。

该字段于 2024 年 10 月 15 日存在变更,更多信息,请参见关于集群创建接口 CreateCluster 参数行为变更的公告

1

access_control_list deprecated

array

No

该字段已废弃】注册集群 API Server SLB 访问控制列表。

string

No

注册集群 API Server SLB 访问控制列表。

192.168.XX.XX/24

Response elements

Element

Type

Description

Example

object

返回体。

cluster_id

string

集群 ID。

cb95aa626a47740afbf6aa099b650****

request_id

string

请求 ID。

687C5BAA-D103-4993-884B-C35E4314****

task_id

string

任务 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.