Volcengine Kubernetes Engine
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Action | String | Yes | CreateCluster | The API name. The current API is CreateCluster. |
Version | String | Yes | 2022-05-12 | The API version. The current version of the API is 2022-05-12. |
ClientToken | String | No | BC028527-33B9-4990-A633-84E9F9****** | A string used to ensure the idempotency of the request. This string is passed in by the caller and must be unique across different requests. ClientToken is case-sensitive and can consist of 64 ASCII characters at most. |
Name | String | Yes | TestCluster | Cluster name.
|
Description | String | No | A Kubernetes Cluster Managed by VKE | Cluster description. It cannot exceed 300 characters in length. |
DeleteProtectionEnabled | Boolean | No | false | Specify whether to enable cluster deletion protection. Valid values:
|
ClusterConfig | No | - | The network configurations of the control plane and nodes. | |
PodsConfig | No | - | The cluster container (Pod) network configurations. | |
ServicesConfig | No | - | Service network configuration of the cluster. | |
Tags | No | - | Specify custom resource tags. They are used to classify, search, and aggregate clusters with the same characteristics from different dimensions, enabling flexible cluster management.
| |
KubernetesVersion | String | No | 1.36 | Kubernetes version of the cluster. The value is in the x.xx format. During cluster creation, the system automatically matches the latest VKE version corresponding to the specified Kubernetes version. For the release notes for Kubernetes versions supported by VKE, see Kubernetes version release notes. |
LoggingConfig | No | - | The log configurations for the cluster. | |
ProjectName | String | No | default | Name of the project to which the cluster belongs. Each cluster can only belong to one project.
|
KubernetesConfig | No | - | The Kubernetes-related parameter settings of the cluster. | |
MonitoringConfig | No | - | The monitoring configurations of the cluster. | |
MaintenanceWindowConfig | No | - | The O&M configurations of the cluster. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
SubnetIds | Array of String | No | ["subnet-5g39dwxvppo******"] | The IDs of subnets used by the cluster control plane to communicate within the VPC. warning
|
ApiServerPublicAccessEnabled | Boolean | No | false | Whether to enable public access to the API Server of the cluster. Values:
|
ApiServerPublicAccessConfig | No | - | The public access configurations of the API server for the cluster. This parameter takes effect only if ApiServerPublicAccessEnabled is set to true. | |
ResourcePublicAccessDefaultEnabled | Boolean | No | false | Public node access configuration. Values:
|
IpFamily | String | No | Ipv4 | Cluster network protocol stack, available values:
warning After cluster creation is complete, you cannot modify this parameter. Configure it appropriately. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
PublicAccessNetworkConfig | No | - | The public access configurations of the API server of the cluster. This setting is required only when ApiServerPublicAccessEnabled is set to true. Otherwise, it is ignored. tip After cluster creation is complete, you cannot modify this parameter. Configure it appropriately. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Isp | String | No | BGP | The line type of the EIP. Valid values:
|
Bandwidth | Integer | No | 100 | The maximum bandwidth of the EIP. Unit: Mbit/s. Valid values:
|
BillingType | Integer | No | 3 | The billing type of the EIP. Valid values:
|
BandwidthPackageId | String | No | bwp-2zeo******** | The ID of the shared bandwidth package. The EIP address will be added to the shared bandwidth package. warning An EIP address can be added to a shared bandwidth package only when all of the following conditions are met:
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
PodNetworkMode | String | Yes | Flannel | Pod network model (CNI). Values:
warning After cluster creation is complete, you cannot modify this parameter. Configure it appropriately. |
VpcCniConfig | No | - | The VPC-CNI network configuration. It can be configured only when PodNetworkMode is set to VpcCniShared and is optional. | |
FlannelConfig | No | - | The Flannel network configurations. It is optional and can be specified only if PodNetworkMode is set to Flannel. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
SubnetIds | Array of String | Yes | ["subnet-5g39dxxxx","subnet-dwxvxxxx"] | The list of Pod subnet IDs in VPC-CNI networking. It is required only when PodNetworkMode is VpcCniShared. Otherwise, this parameter can be omitted. warning When creating a cluster, make sure that all specified SubnetIds (including but not limited to this parameter) belong to the same VPC. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
PodCidrs | Array of String | Yes | ["172.17../19"] | The Pod CIDR blocks in Flannel networking. It is optional and can be specified only if PodNetworkMode is set to Flannel. warning
|
SubnetIds | Array of String | No | ["subnet-5g39****","subnet-5g39****"] | The VPC subnet that provides IP addresses for VCI Pods. It is optional and can be specified only if PodNetworkMode is set to Flannel. warning When creating a cluster, make sure that all specified SubnetIds (including but not limited to this parameter) belong to the same VPC. |
MaxPodsPerNode | Integer | No | 64 | Maximum number of Pod instances per node for Flannel pod networking. Values:
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
ServiceCidrsv4 | Array of String | Yes | ["172.25../17"] | The CIDR block used by services within the cluster. warning
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Key | String | Yes | key | The tag key.
|
Value | String | No | value | The tag value, which can be left empty.
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
LogSetups | No | - | The logging option information for the cluster.
| |
LogProjectId | String | No | b68324a0-2680-48c7******** | ID of the log project for the cluster. warning
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
LogTtl | Integer | No | 30 | Log retention duration in TLS. Logs that exceed the specified retention duration in this log topic will be automatically cleared.
|
Enabled | Boolean | No | false | Specify whether to enable this log option. Valid values:
warning
|
LogType | String | Yes | Audit | The type of enabled logs. Valid values:
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
CustomSans | Array of String | No | ["abc.com","192.168.0.10"] | Custom certificate SAN (Subject Alternative Name), i.e., the ability to customize domain names or IPs in certificates. Supports entering custom IPs, domain names, or URIs that comply with the specifications. Separate multiple configurations with half-width commas (,), the Enter key, or spaces. Supports up to 6 custom SAN entries in the certificate. |
ClusterDomain | String | No | cluster.local | Cluster local domain name. A domain name consists of two or more parts separated by dots (.). Each part supports only lowercase letters, digits, and hyphens (-), and must start and end with a lowercase letter or digit. The maximum length is 57 characters. If you do not specify a local domain name for the cluster, it defaults to cluster.local. |
AdvancedConfig | No | - | API Server advanced configuration. | |
ControlPlaneConfig | No | - | The custom parameter configuration for Kubernetes core add-ons. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
InternalDnsEnabled | Boolean | No | true | Whether to enable private domain access to the API Server for the cluster:
warning When a new cluster is created, API Server private domain name access is enabled by default and is the only supported option. Disabling it is not supported, meaning that setting it to false will not take effect. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
KubeApiServerConfig | No | - | The custom parameter configuration for the kube-apiserver add-on. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
AdmissionPlugins | No | - | The list of admission control add-ons additionally enabled in kube-apiserver beyond those enabled by default. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
AlwaysPullImages | Boolean | No | true | Whether to enable the AlwaysPullImages admission control add-on. Valid values:
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
WorkspaceId | String | Yes | a72bxxxx-83xx-4axx******** | The ID of the VMP workspace used for cluster monitoring. |
ComponentConfigs | No | - | The control plane monitoring configuration. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Name | String | Yes | KubeApiServer | The control plane add-on of the cluster that needs to be monitored. Valid values: KubeApiServer, KubeScheduler, Etcd, and ClusterAutoscaler. |
Enabled | Boolean | No | true | Specify whether to enable control plane add-on monitoring. Valid values:
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Duration | Integer | No | 4 | The duration of automatic O&M. The value is an integer. Value range: 4 to 24. Unit: hours. The default value is 4 if this parameter is not specified. |
StartTime | String | No | 20:00:00Z | The start time of automatic O&M. It must follow the standard Golang time format and use a 24-hour clock. Valid values are whole hours from 00 to 23. Examples: 01:00:00Z and 14:00:00Z. If this parameter is not configured, the default value is 16:00:00Z (UTC). This corresponds to 00:00:00 the next day in Beijing Time (UTC+8). tip
|
TaskConfigs | No | - | The configurations of the automatic O&M task. If this parameter is not specified, the system by default only executes cluster control plane daily O&M tasks and does not execute other O&M tasks. | |
WeeklyCycle | Array of String | No | ["Monday","Tuesday"] | The automatic O&M cycle. Valid values:
If this parameter is not specified, the system performs O&M tasks every day by default. |
ExemptEndDate | String | No | 20260704 | The end time of the automatic O&M exemption window, which is in the format of YYYYMMDD, and calculated by calendar day in Beijing Time (UTC+8). For example, if the value is set to 20260704, it indicates that automatic O&M tasks will no longer be executed by 23:59:59 on that date. tip This date must be later than the date configured for ExemptStartDate, and the difference between the two dates must not exceed 60 days. |
ExemptStartDate | String | No | 20260702 | The start time of the automatic O&M exemption window, which is in the format of YYYYMMDD, and calculated by calendar days in Beijing Time (UTC+8). For example, if the value is set to 20260702, it indicates that automatic O&M tasks will no longer be executed from 00:00:00 on that date. tip
|
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Group | String | Yes | Cluster | The group of automatic O&M tasks. Valid values:
|
Action | String | Yes | AutoUpgradeAddonVersion | The automatic O&M task. Valid values:
|
Targets | Array of String | No | ["metrics-server","cluster-autoscaler"] | Specify the add-on for which automatic version upgrade is performed. You can specify multiple add-ons, which are separated by commas (,). The following add-ons are supported: cluster-autoscaler, metrics-server, log-collector, event-collector, node-problem-detector, metrics-collector, and prometheus-agent. tip
|
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
Id | String | cc5si****** | Cluster ID. |
HTTP status code | Error code | Error message | Description |
HTTP status code | Error code | Error message | Description |
400 | Insufficient.Balance | Your account has run out of balance. | The balance of the current account is insufficient. Top up your account and try again. |
400 | QuotaExceeded.Cluster | The number of clusters has reached the limit. | The number of clusters in the current region has reached the quota limit. For more information about product limits, see Usage limits. You can create clusters in other regions, or submit a ticket to apply for a quota increase. |
400 | VpcMismatch.{{parameter}} | The specified {{resourceType}} {{resourceId}} is not in the same VPC. | The specified subnet IDs do not belong to the same VPC. Specify the parameter and try again. |
400 | OutOfRange.{{cidrParameter}} | The range of specified CIDR is too small. | The range of the CIDR block is too small, which affects the number of Pods. Plan the CIDR block appropriately and try again. |
400 | InvalidRange.{{parameter}} | The range of specified CIDR addresses is in conflict with that of CIDR/Subnet in the cluster or in conflict with that of CIDR/Subnet of another cluster or NOT in the valid CIDR ranges. | The CIDR address range is invalid. Check the parameter and try again. |
400 | OperationDenied.VpcStatus | The status of the specified VPC {{vpcId}} is not valid. | The current status of the specified VPC does not support this action. Confirm the VPC status that this API depends on and try again. You can query VPC status by calling DescribeVpcs. |
409 | Conflict.Name | The specified name conflicts with existing {{resourceType}}. | A resource with the same name exists in the specified region. Update the resource name and try again. |
400 | QuotaExceeded.{{ResourceType}} | The quota of {{ResourceType}} has reached the limit. | The quota for the specified resource (such as EIP, LogProject, and LogTopic) has reached the upper limit. Increase the relevant resource quota or delete unused resources. When the available quota is sufficient, try again later. |
400 | NotSupported.{{parameter}} | The specified {{resourceType}} {{resourceContent}} is not supported. | The specified parameter (such as KubernetesVersion or SubnetId) is not supported. Check the parameter value and try again. |
400 | Insufficient.SubnetIp | The IP of subnet {{subnetId}} is insufficient. | The available IP addresses in the specified subnet are insufficient. Please specify a compliant subnet and try again later. |
400 | LimitExceeded.ClusterSubnetZones | You have reached the limit of the number of cluster subnet zones that you can add. | The number of availability zones of subnets in the cluster exceeds the limit. Make sure that the availability zones of subnets do not exceed three. |
400 | LimitExceeded.ClusterSubnetsOfZone | You have reached the limit of the number of cluster subnets in zone {{zone}} that you can add. | The number of specified subnets in a single availability zone exceeds the limit. Make sure that the number of specified subnets in each availability zone does not exceed 2. |