You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
Operation description
This operation allows you to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
POST /clusters/{ClusterId}/nodepools/{NodepoolId}/upgrade
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | Yes | The cluster ID. | c106f377e16f34eb1808d6b9362c9**** |
NodepoolId | string | Yes | The node pool ID. | np31da1b38983f4511b490fc62108a**** |
body | object | No | The request parameters for the operation. | |
image_id | string | No | The ID of the OS image that is used by the nodes. | aliyun_2_1903_x64_20G_alibase_20200529.vhd |
runtime_version | string | No | The version of the container runtime that is used by the nodes. | 1.5.10 |
kubernetes_version | string | No | The Kubernetes version that is used by the nodes. | 1.22.15-aliyun.1 |
runtime_type | string | No | The runtime type. Valid values: containerd and docker. | containerd |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "2D69A58F-345C-4FDE-88E4-BF518944****",
"task_id": "T-5fd211e924e1d0078700xxxx"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2024-02-28 | The internal configuration of the API is changed, but the call is not affected | see changesets | ||
| ||||
2024-02-06 | The internal configuration of the API is changed, but the call is not affected | see changesets | ||
| ||||
2023-04-27 | The internal configuration of the API is changed, but the call is not affected | see changesets | ||
|