Modifies the configuration of an installed cluster add-on instance. Modifying the configuration may affect your services. Evaluate the impact, perform the operation during off-peak hours, and back up your data in advance.
Operation description
You can call this operation to modify the configuration of add-ons in common clusters and the control plane parameter settings of ACK Pro clusters:
You can call the DescribeClusterAddonMetadata API operation to query the list of configurable parameters for common add-ons. For details, see Query cluster add-on version metadata.
For the list of configurable parameters for the control plane components of ACK Pro clusters, see Customize the control plane parameter settings of an ACK Pro cluster.
Modifying the configuration may cause add-on redeployment and restart. Evaluate the impact before you proceed.
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 add-on ID. |
coredns |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The add-on configuration. |
|
| config |
string |
No |
The custom parameter settings. |
{"CpuRequest":"800m"} |
The value of the config parameter is the JSON-encoded custom parameter settings of the add-on.
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.