All Products
Search
Document Center

Container Service for Kubernetes:UpgradeClusterAddons

Last Updated:Sep 10, 2024

Updates cluster components to use new features and patch vulnerabilities. You must update cluster components one after one and update a component only after the previous one is successfully updated. Before you update a component, we recommend that you read the update notes for each component. Cluster component updates may affect your businesses. Assess the impact, back up data, and perform the update during off-peak hours.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

POST /clusters/{ClusterId}/components/upgrade

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The cluster ID.

cf4299b79b3e34226abfdc80a4bda****
bodyarray<object>No

The request parameters.

objectNo
component_namestringYes

The name of the component.

coredns
next_versionstringYes

The version to which the component can be updated. You can call the DescribeClusterAddonsVersion operation to query the version to which the component can be updated.

1.6.7
versionstringNo

The current version of the component.

v1.6.2
configstringNo

The custom component settings that you want to use. The value is a JSON string.

{\"CpuRequest\":\"800m\"}
policystringNo

The update policy. Valid values:

  • overwrite
  • canary
canary

Response parameters

ParameterTypeDescriptionExample
object
cluster_idstring

The ID of the cluster.

cf4299b79b3e34226abfdc80a4bda****
request_idstring

The ID of the request.

bfd12953-31cb-42f1-8a36-7b80ec345094
task_idstring

The ID of the task.

T-62a944794ee141074400****

Examples

Sample success responses

JSONformat

{
  "cluster_id": "cf4299b79b3e34226abfdc80a4bda****",
  "request_id": "bfd12953-31cb-42f1-8a36-7b80ec345094",
  "task_id": "T-62a944794ee141074400****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-07-24The response structure of the API has changedView Change Details
2024-03-12The internal configuration of the API is changed, but the call is not affectedView Change Details