Modifies the node configurations in a cluster node pool, such as kubelet configurations and rolling update configurations. Modifying node configurations applies changes in batches and restarts kubelet, which may affect node operations and workload execution. Perform this operation during off-peak hours.
Operation description
ACK supports modifying the kubelet configurations of nodes in a node pool. After the modification, the new configurations automatically take effect on existing nodes in the node pool. New nodes added to the node pool also use the new configurations.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:ModifyNodePoolNodeConfig |
update |
*Cluster
|
None | None |
Request syntax
PUT /clusters/{ClusterId}/nodepools/{NodepoolId}/node_config HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
c23421cfa74454bc8b37163fd19af**** |
| NodepoolId |
string |
Yes |
The node pool ID. |
np8d8c9c2cd0f64e89884f82a5fbcd**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| kubelet_config | kubelet_config |
No |
The kubelet parameter settings. |
|
| rolling_policy |
object |
No |
The rolling update configuration. |
|
| max_parallelism |
integer |
No |
Node updates in the node pool are performed in batches. This parameter specifies the maximum number of nodes that can be updated in parallel per batch. Valid values: [1,10]. Default value: 10. |
3 |
| os_config |
object |
No |
The operating system parameter settings. |
|
| sysctl |
object |
No |
The custom sysctl parameter settings. |
|
|
any |
No |
The sysctl parameter settings. For more information, see Customize node pool OS parameters. |
fs.aio-max-nr: 65536 |
|
| hugepage |
Hugepage |
No |
The hugepage configuration. |
|
| containerd_config | containerd_config |
No |
The containerd runtime configuration. |
|
| node_names |
array |
No |
The list of nodes to upgrade. |
|
|
string |
No |
The node to upgrade. |
cn-beijing.10.180.xx.xx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| request_id |
string |
The request ID. |
D7631D83-6E98-1949-B665-766A62**** |
| task_id |
string |
The task ID. |
T-5fd211e924e1d00787**** |
| nodepool_id |
string |
The node pool ID. |
np737c3ac1ac684703b9e10673aa2c**** |
Examples
Success response
JSON format
{
"request_id": "D7631D83-6E98-1949-B665-766A62****",
"task_id": "T-5fd211e924e1d00787****",
"nodepool_id": "np737c3ac1ac684703b9e10673aa2c****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.