跳到主要内容

ack nodepool

管理 ACK 节点池资源

运行 ecctl ack nodepool <action> -h 查看用法,或 ecctl schema ack.nodepool.<action> --full 获取该命令完整的结构化规格——每个参数与行为,便于 Agent 读取和填参。

create

ecctl ack nodepool create [flags]

创建节点池

  • 类型:mutation · 风险:medium
  • 同步:等待 active(waiter active_after_change,超时 600s);用 --no-wait 跳过等待。
API调用时机用途
CreateClusterNodePool指定 --config执行资源操作。
DescribeClusterNodePoolDetail指定 --config 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
CreateClusterNodePool未指定 --config执行资源操作。
DescribeClusterNodePoolDetail未指定 --config 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeClusterNodePoolDetail未指定 --no-wait读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--configobject节点池请求体,JSON 对象或 @file
--desired-sizeinteger节点池期望节点数
--instance-typestring_array节点池伸缩组使用的 ECS 实例规格
--internet-max-bandwidth-outinteger节点池实例公网出方向最大带宽,单位 Mbit/s
--namestring节点池名称
--runtimestring节点池节点容器运行时
--runtime-versionstring节点池节点容器运行时版本
--system-disk-categorystring节点池实例系统盘类型
--system-disk-sizeinteger节点池实例系统盘大小,单位 GiB
--vswitchstring_array节点池伸缩组使用的交换机 ID

update

ecctl ack nodepool update <id> [flags]

更新节点池

  • 类型:mutation · 风险:medium
  • 同步:等待 success(waiter task_succeeded,超时 3600s);用 --no-wait 跳过等待。
API调用时机用途
ModifyClusterNodePool指定 --config执行资源操作。
DescribeTaskInfo指定 --config 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
ScaleClusterNodePool指定 --desired-size执行资源操作。
DescribeTaskInfo指定 --desired-size 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
ModifyNodePoolNodeConfig指定 --with-node-config执行资源操作。
DescribeTaskInfo指定 --with-node-config 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeClusterNodePoolDetail未指定 --no-wait读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--configobject节点池请求体,JSON 对象或 @file
--desired-sizeinteger节点池期望节点数
--node-configobject节点级配置请求体,JSON 对象或 @file
--with-node-configboolean将 update 路由到节点级配置

delete

ecctl ack nodepool delete <id> [flags]

删除节点池

  • 类型:mutation · 风险:high
  • 同步:等待 success(waiter task_succeeded,超时 3600s);用 --no-wait 跳过等待。
API调用时机用途
DeleteClusterNodepool每次执行命令时执行资源操作。
DescribeTaskInfo未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeClusterNodePools未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--forceboolean在 API 支持时启用强制删除语义(默认:false

get

ecctl ack nodepool get <id> [flags]

获取节点池

  • 类型:read · 风险:low
API调用时机用途
DescribeClusterNodePoolDetail每次执行命令时读取资源视图。
DescribeNodePoolVuls指定 --with-vuls读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔
--necessitystring漏洞修复必要性过滤
--with-vulsboolean附带节点池漏洞详情

list

ecctl ack nodepool list [flags]

列出节点池

  • 类型:read · 风险:low
API调用时机用途
DescribeClusterNodePools每次执行命令时读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔
--namestring节点池名称

attach

ecctl ack nodepool attach <id> [flags]

将实例加入节点池

  • 类型:mutation · 风险:medium
  • 同步:等待 success(waiter task_succeeded,超时 3600s);用 --no-wait 跳过等待。
API调用时机用途
AttachInstancesToNodePool未指定 --print-script-only执行资源操作。
DescribeTaskInfo未指定 --print-script-only 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeClusterAttachScripts指定 --print-script-only读取资源视图。
DescribeClusterNodePoolDetail未指定 --no-wait 且未指定 --print-script-only读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--configobject节点池请求体,JSON 对象或 @file
--instancestring_arrayECS 实例 ID
--print-script-onlyboolean仅打印加入脚本,不执行实例加入

detach

ecctl ack nodepool detach <id> [flags]

从节点池移除节点

  • 类型:mutation · 风险:medium
  • 同步:等待 success(waiter task_succeeded,超时 3600s);用 --no-wait 跳过等待。
API调用时机用途
RemoveNodePoolNodes每次执行命令时执行资源操作。
DescribeTaskInfo未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeClusterNodePoolDetail未指定 --no-wait读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--concurrencyboolean在支持时并发移除节点
--drain-nodeboolean移除前排空节点
--forceboolean在 API 支持时启用强制删除语义(默认:false
--instancestring_arrayECS 实例 ID
--nodestring_arrayKubernetes 节点名称或 ID

repair

ecctl ack nodepool repair <id> [flags]

修复节点池

  • 类型:mutation · 风险:medium
  • 同步:等待 success(waiter task_succeeded,超时 3600s);用 --no-wait 跳过等待。
API调用时机用途
RepairClusterNodePool指定 --node 或指定 --config 或指定 --api-param执行资源操作。
DescribeTaskInfo(指定 --node 或指定 --config 或指定 --api-param)且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
FixNodePoolVuls指定 --vulnerabilities执行资源操作。
DescribeTaskInfo指定 --vulnerabilities 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeClusterNodePoolDetail未指定 --no-wait读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--regionstringAlibaba Cloud region
--configobject节点池请求体,JSON 对象或 @file
--nodestring_arrayKubernetes 节点名称或 ID
--vulnerabilitiesstring_array要修复的漏洞 ID

upgrade

ecctl ack nodepool upgrade <id> [flags]

升级节点池

  • 类型:mutation · 风险:medium
  • 同步:等待 success(waiter task_succeeded,超时 3600s);用 --no-wait 跳过等待。
API调用时机用途
UpgradeClusterNodepool每次执行命令时执行资源操作。
DescribeTaskInfo未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeClusterNodePoolDetail未指定 --no-wait读取资源视图。
参数类型必填说明
--clusterstringACK 集群 ID
--configobject节点池请求体,JSON 对象或 @file
--regionstringAlibaba Cloud region