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.
Operation description
升级集群组件实例版本可能会影响业务,请评估影响后在业务低峰期操作并提前做好相关的数据备份。
升级组件前,请参考组件发布记录了解指定组件的变更内容和变更影响。
请依次逐个组件升级,确认一个组件升级成功后再升级下一个组件。
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:UpgradeK8sComponents |
update |
*Cluster
|
None | None |
Request syntax
POST /clusters/{ClusterId}/components/upgrade HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
cf4299b79b3e34226abfdc80a4bda**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
array<object> |
No |
The request parameters. |
|
|
object |
No |
|||
| component_name |
string |
Yes |
The name of the component. |
coredns |
| next_version |
string |
Yes |
The version to which the component can be updated. You can call the |
v1.11.3.5-5321daf49-aliyun |
| version |
string |
No |
The current version of the component. |
v1.11.3.2-f57ea7ed6-aliyun |
| config |
string |
No |
The custom component settings that you want to use. The value is a JSON string. |
{"CpuRequest":"800m"} |
| policy |
string |
No |
The update policy. Valid values:
|
canary |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| cluster_id |
string |
The cluster ID. |
cf4299b79b3e34226abfdc80a4bda**** |
| request_id |
string |
The request ID. |
bfd12953-31cb-42f1-8a36-7b80ec34**** |
| task_id |
string |
The task ID. |
T-62a944794ee141074400**** |
Examples
Success response
JSON format
{
"cluster_id": "cf4299b79b3e34226abfdc80a4bda****",
"request_id": "bfd12953-31cb-42f1-8a36-7b80ec34****",
"task_id": "T-62a944794ee141074400****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.