通过执行arc-cs nodepools create <cluster_id> --count <instance_number> --nodepool-info '{xxx}' --scaling-group '{xxx}' --kubernetes-config '{xxx}'命令创建自定义节点池。

关于该命令的详细参数说明,请参见创建节点池

CLI示例

请求示例:
arc-cs nodepools create caa73d115830746e0942c9554ecae**** \
--count 1 \
--nodepool-info '{
    "name":"custom-nodepool",
    "resource-group-id":"rg-acfmyvw3wjm****"
  }' \
--scaling-group '{
    "vswitch-ids":["vsw-2ze0ua3ggkgwmfcd0****"],
    "instance-charge-type":"PostPaid",
    "instance-types":["ecs.n1.medium"],
    "system-disk-category":"cloud_efficiency",
    "system-disk-size":120,
    "data-disks":[{"category":"cloud_efficiency","size":120,"encrypted":"false"}],
    "key-pair":"sian-sshkey",
    "platform":"CentOS",
    "security-group-id":"sg-2ze1ld632d8265bh****",
    "tags":[{"key":"ecs_tags_key","value":"ecs_tags_value"}]
  }' \
--kubernetes-config '{
    "cms-enabled":true,
    "cpu-policy":"none",
    "labels":[{"key":"node_tags_key","value":"node_tags_value"}],
    "runtime":"docker",
    "runtime-version":"19.03.5"
  }'
返回结果示例:
{
  "nodepoolId": "npaf26367f491a4d3a8e5d9623ce43****"
}