云容器引擎 CCE-更新指定的集群:请求示例

时间:2023-11-01 16:20:05

请求示例

  • 仅更新集群描述

    {  "spec" : {    "description" : "new description"  }}
  • 仅更新集群自定义证书SAN

    {  "spec" : {    "customSan" : [ "192.168.1.0", "example.com" ]  }}
  • 同时更新集群描述和自定义证书SAN

    {  "spec" : {    "description" : "new description",    "customSan" : [ "192.168.1.0", "example.com" ]  }}
  • 添加集群容器网段(v1.21版本以上VPC网络模型的集群适用)

    {  "spec" : {    "containerNetwork" : {      "cidrs" : [ {        "cidr" : "10.10.0.0/16"      }, {        "cidr" : "10.11.0.0/16"      } ]    }  }}
  • 修改集群默认节点安全组

    /api/v3/projects/{project_id}/clusters/{cluster_id}{  "spec" : {    "hostNetwork" : {      "SecurityGroup" : "6ee29825-8f49-4796-b33a-fc76f84a59ae"    }  }}
support.huaweicloud.com/api-cce/cce_02_0240.html