Volcengine Kubernetes Engine
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Action | String | Yes | UpgradeNodePools | The API name. The current API name is UpgradeNodePools. |
Version | String | Yes | 2022-05-12 | The API version. The current version of the API is 2022-05-12. |
ClusterId | String | Yes | cc8oo****** | Cluster ID. Note The cluster to be updated must be in the {Running,[*]} state. You can call the ListClusters API to view the current status of the cluster. |
Operation | String | No | Precheck | The specific operation to be performed. Valid values:
|
NodePools | No | - | Information about the node pool where the nodes to be upgraded reside. | |
IgnorePrecheckWarning | Boolean | No | true | Whether to stop the upgrade process when a Warning occurs during the upgrade precheck. Valid values:
|
Runtime | No | - | Container runtime configuration. | |
KubernetesVersion | String | No | v1.36.1-vke.2 | The Kubernetes version of the node, in the format <Kubernetes version>-<VKE patch version>. For the release notes for Kubernetes versions supported by VKE, see Kubernetes version release notes. |
UpgradePolicy | No | - | The batching policy for node upgrades. | |
ClientToken | String | No | BC028527-33B9-4990-A633-****** | A string used to ensure the idempotency of the request. This string is passed in by the caller and must be unique across different requests. ClientToken is case-sensitive and can consist of 64 ASCII characters at most. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
NodeIds | Array of String | No | ["nd6ptkl0f9t****", "nd6ptkl0f9t****"] | List of node IDs to be upgraded. You can call the ListNodes API to obtain the node ID. A single call can include at most 2000 node IDs.
Note The nodes must be in the {Running,[OK]} status. |
NodePoolId | String | Yes | pd6l4v8e**** | The ID of the node pool where the nodes to be upgraded reside. Note
You can call the ListNodePools API to obtain the node pool status, and call the ListNodes API to obtain the node status. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
Type | String | No | containerd | Container runtime type. Values:
|
Version | String | Yes | v2.1.9-vke.1 | Container runtime version, in the format <scontainerd Version>-<VKE patch Version>. |
Parameter | Type | Required | Sample value | Description |
Parameter | Type | Required | Sample value | Description |
MaxFailed | Integer | No | 0 | The maximum number of node failures allowed during the upgrade process. If the number of failed nodes does not exceed this setting, the upgrade continues. If it exceeds this value, the upgrade stops.
|
MaxUnavailable | Integer | No | 100 | The maximum number of concurrent nodes during a node pool upgrade.
|
Parameter | Type | Sample value | Description |
Parameter | Type | Sample value | Description |
TaskId | String | tdaa4i21v7p3**** | Task ID. |
HTTP status code | Error code | Error message | Description |
HTTP status code | Error code | Error message | Description |
400 | OperationDenied.UpgradeNodesAndNodePools | UpgradeNodePools cannot be performed on both nodes and node pools at the same time. | Upgrading at both the node level and the node pool level is not allowed. When multiple arrays are passed in NodePools, if some arrays are upgraded at the node pool level and some at the node level, this error code will appear. Please update the corresponding parameter values and try again. |
400 | LimitExceeded.UpgradeNodesNumber | The number of nodes for upgrade exceeds the maximum limit of {{UpgradeNodesMaxNum}}. | The total number of nodes to be upgraded exceeds the limit. A single call supports upgrading at most 2000 nodes. Please update the relevant parameters and try again. |
400 | OperationDenied.ClusterStatus | The action is forbidden due to cluster status {{statusPhase}} and {{statusConditions}}. | The current status of the specified cluster does not support this operation. Confirm the required cluster status for this API and try again. |
400 | OperationDenied.NodeStatus | The action is forbidden on node {{nodeId}} due to node status {{statusPhase}} and {{statusConditions}}. | The current node status does not support this operation. Please confirm the required node status for this API and try again. |
400 | OperationDenied.NodePoolStatus | The action is forbidden on node pool {{nodePoolId}} due to node pool status {{statusPhase}} and {{statusConditions}}. | The current status of the specified node pool does not support this operation. Please confirm the required node pool status for this API and try again. |
400 | KubernetesVersionMismatch.RuntimeVersion | The specified runtime version {{runtimeVersion}} and Kubernetes version {{kubernetesVersion}} are mismatched. | The specified container runtime version does not match the cluster Kubernetes version. For example, containerd 2.1.x is only supported in clusters with Kubernetes v1.34 or later. Specify another container runtime version and try again later. For more information, see the containerd release notes. |