Call ModifyCluster to change an ACK cluster's configuration.
Operation description
instance_deletion_protection, ingress_loadbalancer_id, and access_control_list will have no effect. For more information, see Announcement on OpenAPI Request and Response Parameter Changes and OpenAPI Deprecation for ACK Cluster Management.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 |
Specifies whether to associate an EIP with the cluster API Server to allow public access. Valid values:
|
true |
| api_server_eip_id |
string |
No |
The ID of the EIP instance associated with the cluster API Server. This parameter applies only when |
eip-wz9fnasl6dsfhmvci**** |
| deletion_protection |
boolean |
No |
Specifies whether to enable deletion protection for the cluster. Valid values:
Default value: |
false |
| resource_group_id |
string |
No |
The ID of the resource group to which the cluster belongs. |
rg-acfmyvw3wjm**** |
| maintenance_window | maintenance_window |
No |
The maintenance window of the cluster. This setting applies only to ACK Pro managed clusters. |
|
| enable_rrsa |
boolean |
No |
Specifies whether to enable the RAM Roles for Service Accounts (RRSA) feature. This setting applies only to managed clusters. Valid values:
|
true |
| cluster_name |
string |
No |
The name of the cluster. The name must be 1 to 63 characters long, can contain digits, letters, Chinese characters, and hyphens (-), and cannot start with a hyphen. |
cluster-new-name |
| cluster_spec |
string |
No |
The specification of the cluster. This parameter applies only when
Pro XL, Pro 2XL, and Pro 4XL are three specifications provided by the ACK Pro provisioned control plane. This feature pre-allocates and fixes control plane resources to ensure a consistently high level of API concurrency and pod scheduling capabilities, which is suitable for AI training and inference, large-scale clusters, and mission-critical services. For information about the cluster management fee for Pro Edition and provisioned control plane clusters, see cluster management fee. |
ack.pro.small |
| system_events_logging |
object |
No |
The configuration for storing system events. |
|
| enabled |
boolean |
No |
Specifies whether to enable system event logging. Valid values:
|
true |
| logging_project |
string |
No |
The name of the Log Service project for storing system events. |
k8s-log-cb95aa626a47740afbf6aa099b65**** |
| operation_policy |
object |
No |
The automatic O&M policy for the cluster. |
|
| cluster_auto_upgrade |
object |
No |
The cluster auto-upgrade policy. |
|
| enabled |
boolean |
No |
Specifies whether to enable cluster auto-upgrades. Valid values:
|
true |
| channel |
string |
No |
The auto-upgrade channel. For more information, see Upgrade channels. Valid values:
|
patch |
| api_server_custom_cert_sans |
object |
No |
The custom Subject Alternative Names (SANs) for the API Server certificate. This parameter allows you to add custom IP addresses or domain names to the SAN field of the API Server certificate for client access control. This parameter is available only for managed clusters. |
|
| action |
string |
No |
The modification method for the SANs. Valid values:
|
append |
| subject_alternative_names |
array |
No |
The list of SANs. |
|
|
string |
No |
A single SAN, which can be an IP address or a domain name. |
aliyun.xxx.com,192.168.xx.xx |
|
| vswitch_ids |
array |
No |
The VSwitches for the cluster control plane. In dedicated clusters, changes apply only to newly added control plane nodes. When you change the control plane VSwitches in managed clusters, note the following:
|
|
|
string |
No |
A VSwitch for the cluster control plane. |
vsw-2ze4jvvvade1yk899**** |
|
| control_plane_config |
object |
No |
The control plane configuration for a dedicated cluster. |
|
| charge_type |
string |
No |
The billing method of the control plane nodes. Valid values:
Default value: |
PostPaid |
| period |
integer |
No |
The subscription duration of the control plane nodes. This parameter is required only if If |
1 |
| period_unit |
string |
No |
The billing cycle of the control plane nodes. This parameter applies only when
|
Month |
| auto_renew |
boolean |
No |
Specifies whether to enable auto-renewal for the subscription control plane nodes. This parameter takes effect only when
Default value: |
false |
| auto_renew_period |
integer |
No |
The auto-renewal period for the control plane nodes, in months. Valid values: 1, 2, 3, 6, and 12. Default value: |
1 |
| instance_types |
array |
No |
The instance types. For more information, see Instance types. |
|
|
string |
No |
An instance type. |
ecs.g6.large |
|
| image_type |
string |
No |
The OS image type. Valid values:
|
AliyunLinux3 |
| image_id |
string |
No |
The ID of the custom image. Specify this parameter when you use a custom image. |
aliyun_3_x64_20G_alibase_20240819.vhd |
| key_pair |
string |
No |
The name of the key pair. You must specify either this parameter or |
ack |
| login_password |
string |
No |
The SSH logon password. You must specify either this parameter or |
Ack@2000. |
| system_disk_category |
string |
No |
The type of the node system disk. Valid values:
|
cloud_essd |
| system_disk_size |
integer |
No |
The size of the node system disk, in GiB. The value must be between 40 and 500. |
120 |
| system_disk_snapshot_policy_id |
string |
No |
The ID of the automatic snapshot policy to apply to the node system disks. |
sp-2zej1nogjvovnz4z**** |
| system_disk_performance_level |
string |
No |
The performance level (PL) of the system disk. This parameter applies only to ESSDs. The PL depends on the disk size. For more information, see ESSDs. |
PL1 |
| system_disk_provisioned_iops |
integer |
No |
The provisioned IOPS of the node system disk. Valid values: 0 to min{50,000, 1,000 × Capacity - Base IOPS}. Base IOPS = min{1,800 + 50 × Capacity, 50,000}. You can set this parameter only when |
1000 |
| system_disk_bursting_enabled |
boolean |
No |
Specifies whether to enable the performance burst feature for the system disk. Valid values:
You can set this parameter only when |
true |
| deploymentset_id |
string |
No |
The ID of the deployment set. |
ds-bp10b35imuam5amw**** |
| cloud_monitor_flags |
boolean |
No |
Specifies whether to install the CloudMonitor agent on the control plane nodes. Valid values:
|
true |
| soc_enabled |
boolean |
No |
Specifies whether to enable MLPS-compliant security hardening. For more information, see Enable MLPS-compliant security hardening 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 of Kubernetes 1.12.6 or later:
Default value: |
none |
| runtime |
string |
No |
The container runtime. Valid values:
Default value: |
containerd |
| node_port_range |
string |
No |
The NodePort range for the cluster. The range must be within 30000-65535. Default value: |
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 ID of the control plane security group.
|
sg-bp1h6rk3pgct2a08*** |
| timezone |
string |
No |
The time zone of the cluster. For more information, see Supported time zones.
|
Asia/Shanghai |
| control_plane_endpoints_config |
object |
No |
The cluster connection configuration. |
|
| internal_dns_config |
object |
No |
The internal DNS configuration for the cluster. This parameter is applicable only to ACK managed clusters. Node-side system components, such as kubelet and kube-proxy, use the internal domain of the cluster to access the API Server. If this feature is disabled, they access the API Server by using its SLB IP address. |
|
| bind_vpcs |
array |
No |
The VPCs in which the internal domain records of the cluster take effect. |
|
|
string |
No |
A VPC in which the internal domain records of the cluster take effect. |
vpc-xxxx |
|
| enabled |
boolean |
No |
Specifies whether to enable access to the cluster over an internal domain. Valid values:
|
true |
access_control_list
deprecated
|
array |
No |
The access control list of the SLB instance for the API Server of a registered cluster. |
|
|
string |
No |
A CIDR block for the access control list. Note: Do not specify the 0.0.0.0/0 CIDR block. |
192.168.XX.XX/24 |
|
instance_deletion_protection
deprecated
|
boolean |
No |
Specifies whether to enable deletion protection for nodes. When enabled, nodes cannot be released from the console or by calling an API operation. Valid values:
Default value: |
false |
ingress_domain_rebinding
deprecated
|
boolean |
No |
Specifies whether to rebind the default Ingress domain name of the cluster. Valid values:
Default value: |
false |
ingress_loadbalancer_id
deprecated
|
string |
No |
The ID of the SLB instance that is used for the cluster Ingress. |
lb-wz97kes8tnndkpodw**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned for the modification request. |
||
| cluster_id |
string |
The unique identifier of the cluster. |
cb95aa626a47740afbf6aa09**** |
| request_id |
string |
The unique identifier of the request. Include this ID in support tickets for troubleshooting. |
687C5BAA-D103-4993-884B-C35E4314**** |
| task_id |
string |
The unique identifier of the asynchronous modification task. |
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.