Modifies the configuration of an ACK cluster.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:ModifyCluster |
update |
*Cluster
|
|
None |
Request syntax
PUT /api/v2/clusters/{ClusterId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
cb95aa626a47740afbf6aa099b65**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
true |
| api_server_eip |
boolean |
No |
Indicates whether an EIP is attached to the cluster for public network access to the API server. Valid values:
|
true |
| api_server_eip_id |
string |
No |
The instance ID of the EIP attached to the cluster API server. This parameter takes effect only when |
eip-wz9fnasl6dsfhmvci**** |
| deletion_protection |
boolean |
No |
Specifies whether to enable deletion protection for the cluster to prevent accidental deletion through the console or API. Valid values:
Default value: |
false |
| resource_group_id |
string |
No |
The resource group ID of the cluster. |
rg-acfmyvw3wjm**** |
| maintenance_window | maintenance_window |
No |
The O&M window configuration of the cluster. This feature takes effect only for ACK Pro clusters. |
|
| enable_rrsa |
boolean |
No |
Specifies whether to enable or disable the RRSA feature. Only managed clusters support this parameter. Valid values:
|
true |
| cluster_name |
string |
No |
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-new-name |
| cluster_spec |
string |
No |
The cluster specification when
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 and Provisioned Control Plane editions, see Cluster management fees. |
ack.pro.small |
| system_events_logging |
object |
No |
The system event storage configuration. |
|
| enabled |
boolean |
No |
Specifies whether to enable system event storage.
|
true |
| logging_project |
string |
No |
The name of the LogProject for system event storage. |
k8s-log-cb95aa626a47740afbf6aa099b65**** |
| operation_policy |
object |
No |
The cluster automatic O&M policy. |
|
| cluster_auto_upgrade |
object |
No |
The cluster auto upgrade configuration. |
|
| enabled |
boolean |
No |
Whether to enable cluster automatic upgrade.
|
true |
| channel |
string |
No |
Cluster automatic upgrade frequency. For more information, see Upgrade Frequency. Valid values:
|
patch |
| api_server_custom_cert_sans |
object |
No |
The custom API server certificate SAN (Subject Alternative Name). This parameter adds custom IP addresses or domain names to the SAN field of the cluster API server certificate for client access control. Only managed clusters support this parameter. |
|
| action |
string |
No |
Specifies whether to overwrite or append the SAN configuration. Valid values:
|
append |
| subject_alternative_names |
array |
No |
The SAN list. |
|
|
string |
No |
The SAN. Custom IP addresses or domain names are supported. Separate multiple IP addresses or domain names with commas (,). |
aliyun.xxx.com,192.168.xx.xx |
|
| vswitch_ids |
array |
No |
The vSwitches for the cluster control plane. For dedicated clusters, the change applies to newly scaled-out control plane nodes. When changing control plane vSwitches for managed clusters, note the following:
|
|
|
string |
No |
The vSwitch for the cluster control plane. |
vsw-2ze4jvvvade1yk899**** |
|
| control_plane_config |
object |
No |
The dedicated cluster control plane configuration. |
|
| charge_type |
string |
No |
The billing method of control plane node instances. Valid values:
Default value: |
PostPaid |
| period |
integer |
No |
The subscription duration of control plane node instances. This parameter takes effect and is required only when When |
1 |
| period_unit |
string |
No |
The billing cycle unit of control plane node instances. This parameter takes effect only when
|
Month |
| auto_renew |
boolean |
No |
Specifies whether to enable auto-renewal for control plane node instances. This parameter takes effect only when
Default value: |
false |
| auto_renew_period |
integer |
No |
The auto-renewal duration per cycle for control plane node instances. Valid values: {1, 2, 3, 6, 12}. Unit: months. Default value: 1. |
1 |
| instance_types |
array |
No |
The instance types. For more information, see Instance families. |
|
|
string |
No |
The instance type. |
ecs.g6.large |
|
| image_type |
string |
No |
The operating system image type. Valid values:
|
AliyunLinux3 |
| image_id |
string |
No |
The custom image ID. Specify this parameter when using a custom image. |
aliyun_3_x64_20G_alibase_20240819.vhd |
| key_pair |
string |
No |
The key pair name. Specify either this parameter or |
ack |
| login_password |
string |
No |
The SSH logon password. Specify either this parameter or |
Ack@2000. |
| system_disk_category |
string |
No |
The type of the node system cloud disk. Valid values:
|
cloud_essd |
| system_disk_size |
integer |
No |
The size of the node system cloud disk. Valid values: [40, 500]. Unit: GiB. |
120 |
| system_disk_snapshot_policy_id |
string |
No |
The ID of the automatic snapshot policy applied to the node system cloud disk. |
sp-2zej1nogjvovnz4z**** |
| system_disk_performance_level |
string |
No |
The performance level (PL) of the node system cloud disk. This parameter takes effect only for ESSD cloud disks. The performance level is related to the disk size. For more information, see standard SSDs. |
PL1 |
| system_disk_provisioned_iops |
integer |
No |
The provisioned read/write IOPS of the node system cloud disk. 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_bursting_enabled |
boolean |
No |
Specifies whether to enable burst (performance burst) for the node system cloud disk. Valid values:
This parameter is supported only when |
true |
| deploymentset_id |
string |
No |
The deployment set ID. |
ds-bp10b35imuam5amw**** |
| cloud_monitor_flags |
boolean |
No |
Specifies whether to install the CloudMonitor agent on control plane nodes. Valid values:
|
true |
| soc_enabled |
boolean |
No |
Specifies whether to enable MLPS 2.0 security hardening. For more information, see China-classified protection compliance for ACK. Valid values:
Default value: |
false |
| security_hardening_os |
boolean |
No |
Specifies whether to enable Alibaba Cloud OS security hardening. Valid values:
Default value: |
false |
| cpu_policy |
string |
No |
The node CPU management policy. The following policies are supported for clusters running version 1.12.6 or later:
Default value: |
none |
| runtime |
string |
No |
The container runtime name. Valid values:
Default value: containerd. |
containerd |
| node_port_range |
string |
No |
The node service port range. Available port range: [30000, 65535]. Default value: 30000-32767. |
30000-32767 |
| size |
integer |
No |
The number of control plane nodes. To scale out the control plane of a dedicated cluster, set this parameter to the target number of control plane nodes, which must be greater than the current number. |
5 |
| security_group_id |
string |
No |
The control plane security group ID.
|
sg-bp1h6rk3pgct2a08*** |
| timezone |
string |
No |
The cluster time zone. See Supported time zones.
|
Asia/Shanghai |
| client_token |
string |
No |
The client token. |
af31042c-6355-495b-b6e3-exxb9669 |
| control_plane_endpoints_config |
object |
No |
The cluster endpoint configuration. |
|
| load_balancers_config |
array<object> |
No |
The cluster access load balancing configuration. |
|
|
object |
No |
The cluster access load balancing configuration. |
||
| endpoint_type |
string |
No |
||
| load_balancer_id |
string |
No |
||
| 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 |
VPCs where the cluster internal domain name record resolution takes effect. |
|
|
string |
No |
VPCs where the cluster internal domain name record resolution takes effect. |
vpc-xxxx |
|
| enabled |
boolean |
No |
Whether to enable cluster internal domain name access. Valid values:
|
true |
access_control_list
deprecated
|
array |
No |
The access control list for the registered cluster API server SLB. |
|
|
string |
No |
The access control list for the registered cluster API server SLB. Note: The 0.0.0.0/0 CIDR block is not allowed. |
192.168.XX.XX/24 |
|
instance_deletion_protection
deprecated
|
boolean |
No |
Specifies whether to enable instance deletion protection to prevent accidental deletion of nodes through the console or API. Valid values:
Default value: |
false |
ingress_domain_rebinding
deprecated
|
boolean |
No |
Specifies whether to rebind the cluster test domain name. Valid values:
Default value: |
false |
ingress_loadbalancer_id
deprecated
|
string |
No |
The SLB instance ID of the cluster to be modified. |
lb-wz97kes8tnndkpodw**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| cluster_id |
string |
The cluster ID. |
cb95aa626a47740afbf6aa09**** |
| request_id |
string |
The request ID. |
687C5BAA-D103-4993-884B-C35E4314**** |
| task_id |
string |
The task ID. |
T-5a54309c80282e39ea00**** |
Examples
Success response
JSON format
{
"cluster_id": "cb95aa626a47740afbf6aa09****",
"request_id": "687C5BAA-D103-4993-884B-C35E4314****",
"task_id": "T-5a54309c80282e39ea00****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.