Modifies the configuration of a cluster component. This operation may affect your businesses. We recommend that you assess the impact, back up data, and perform the operation during off-peak hours.
Operation description
You can call this API operation to modify the component parameters of an ACK Basic cluster or the control plane parameters of an ACK Pro cluster:
To view the component parameters of an ACK Basic cluster, call the DescribeClusterAddonMetadata API operation. For more information, see Query the metadata of a cluster component.
To view the control plane parameters of an ACK Pro cluster, see Customize the control plane parameters of an ACK Pro cluster.
After you call this operation, the component may be redeployed and restarted. We recommend that you assess the impact before you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:ModifyClusterAddon |
update |
*Cluster
|
|
None |
Request syntax
POST /clusters/{cluster_id}/components/{component_id}/config HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| cluster_id |
string |
Yes |
The cluster ID. |
c71d616e629ff40d5b42d7bb87770**** |
| component_id |
string |
Yes |
The component ID. |
coredns |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The component configuration. |
|
| config |
string |
No |
The custom parameter settings that you want to use. |
{"CpuRequest":"800m"} |
Set config to a JSON string.
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.