UpdateClusterConfig
In this article:
UpdateClusterConfig#
Description#
Updates the Kubernetes cluster configuration. The node group continues to function during the update.
Request Syntax#
POST /clusters/name/update-config HTTP/1.1
Content-type: application/json
{
"resourcesVpcConfig": {
"securityGroupIds": [ "string" ],
}
}
URI Request Parameters#
The request uses the following URI parameters.
name — The cluster name.
Type: String
Required: Yes
Request Parameters#
Optional parameters#
resourcesVpcConfig — The VPC configuration that the Kubernetes cluster uses.
Type: resourcesVpcConfig object
Required: Yes
Response Syntax#
HTTP/1.1 200
Content-type: application/json
{
"update": {
"createdAt": number,
"errors": [
{
"errorCode": "string",
"errorMessage": "string",
"resourceIds": [ "string" ]
}
],
"id": "string",
"params": [
{
"type": "string",
"value": "string"
}
],
"status": "string",
"type": "string"
}
}
Response Elements#
If the request is executed successfully, API will return an HTTP response with 200 code. The response contains the following data in JSON format.
update — The description of an asynchronous update description.
Type: update object
Examples#
boto3 CROC Cloud boto3 Client
import boto3
session = boto3.Session(
aws_access_key_id="<AWS_ACCESS_KEY_ID>",
aws_secret_access_key="<AWS_SECRET_ACCESS_KEY>",
region_name="ngn",
)
eks_client = session.client(
'eks',
endpoint_url='https://eks.cloud.ngn.com.tr/',
)
eks_client.update_cluster_config(
name="production",
resourcesVpcConfig={
"securityGroupIds": ["sg-F10FB1F3"]
},
)
c2-eks CROC Cloud API Client
c2-eks UpdateClusterConfig name production resourcesVpcConfig.securityGroupIds.0 sg-F10FB1F3
aws-cli
aws eks --endpoint https://eks.cloud.ngn.com.tr/ update-cluster-config --name production --resources-vpc-config '{"securityGroupIds": ["sg-F10FB1F3"]}'