Modifies the configuration of a node pool, such as the kubelet configuration and node rolling update configuration. After you modify the node pool configuration, nodes are batch updated and the kubelet on each node is restarted. This may adversely affect the nodes and workloads. We recommend that you perform this operation during off-peak hours.
Operation description
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
cs:ModifyNodePoolNodeConfig | update | *Cluster acs:cs:{#regionId}:{#accountId}:cluster/{#ClusterId} |
| none |
Request syntax
PUT /clusters/{ClusterId}/nodepools/{NodepoolId}/node_config HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ClusterId | string | Yes | The ID of the cluster. | c23421cfa74454bc8b37163fd19af**** |
NodepoolId | string | Yes | The node pool ID. | np8d8c9c2cd0f64e89884f82a5fbcd**** |
body | object | No | The request parameters. | |
kubelet_config | kubelet_config | No | The kubelet configuration. | |
rolling_policy | object | No | The rotation configuration. | |
max_parallelism | long | No | The maximum number of unavailable nodes. | 3 |
os_config | object | No | The OS configuration. | |
sysctl | object | No | The sysctl configuration. | |
any | No | The sysctl parameter. | fs.aio-max-nr |
Response parameters
Examples
Sample success responses
JSON
format
{
"request_id": "D7631D83-6E98-1949-B665-766A62xxxxxx",
"task_id": "T-5fd211e924e1d00787xxxxxx",
"nodepool_id": "np737c3ac1ac684703b9e10673aa2c****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-04-17 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-08-23 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2022-08-30 | Add Operation | View Change Details |