All Products
Search
Document Center

Container Service for Kubernetes:UpgradeClusterNodepool

Last Updated:Apr 22, 2024

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

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}/nodepools/{NodepoolId}/upgrade

Request parameters

ParameterTypeRequiredDescriptionExample
ClusterIdstringYes

The cluster ID.

c106f377e16f34eb1808d6b9362c9****
NodepoolIdstringYes

The node pool ID.

np31da1b38983f4511b490fc62108a****
bodyobjectNo

The request parameters for the operation.

image_idstringNo

The ID of the OS image that is used by the nodes.

aliyun_2_1903_x64_20G_alibase_20200529.vhd
runtime_versionstringNo

The version of the container runtime that is used by the nodes.

1.5.10
kubernetes_versionstringNo

The Kubernetes version that is used by the nodes.

1.22.15-aliyun.1
runtime_typestringNo

The runtime type. Valid values: containerd and docker.

containerd

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

2D69A58F-345C-4FDE-88E4-BF518944****
task_idstring

The task ID.

T-5fd211e924e1d0078700xxxx

Examples

Sample success responses

JSONformat

{
  "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 timeSummary of changesOperation
2024-02-28The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.
2024-02-06The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.
2023-04-27The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.