跳到主要内容

lingjun cluster

管理灵骏集群资源

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

create

ecctl lingjun cluster create [flags]

创建灵骏集群

  • 类型:mutation · 风险:medium
  • 同步:等待 running(waiter ready_after_change,超时 1800s);用 --no-wait 跳过等待。
API调用时机用途
CreateCluster每次执行命令时执行资源操作。
DescribeCluster未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeCluster未指定 --no-wait返回最终资源视图。(复用等待结果,不额外请求)
参数类型必填说明
--namestring灵骏集群名称
--regionstringAlibaba Cloud region
--cluster-typestring灵骏集群类型
--componentsstring符合灵骏 API 结构的组件 JSON 数组
--descriptionstring灵骏集群描述
--hpn-zonestring集群 HPN 分区
--ignore-failed-node-tasksboolean在 API 支持时跳过失败节点任务
--networksstring符合灵骏 API 结构的网络 JSON 对象
--nimiz-vswitchesstringNIMIZ 交换机 JSON 数组
--node-groupsstring符合灵骏 API 结构的节点组 JSON 数组
--open-eni-jumbo-frameboolean启用 ENI Jumbo Frame
--resource-groupstring资源组 ID
--tagkey_value标签赋值 key=value

update

ecctl lingjun cluster update <id> [flags]

扩容或缩容灵骏集群

  • 类型:mutation · 风险:medium
  • 同步:等待 running(waiter ready_after_change,超时 1800s);用 --no-wait 跳过等待。
API调用时机用途
ExtendCluster指定 --extend执行资源操作。
DescribeCluster指定 --extend 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
ShrinkCluster指定 --shrink执行资源操作。
DescribeCluster指定 --shrink 且未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
DescribeCluster未指定 --no-wait读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--extendstring集群扩容节点组 JSON 数组
--ignore-failed-node-tasksboolean在 API 支持时跳过失败节点任务
--ip-allocation-policystring扩容 IP 分配策略 JSON 数组
--shrinkstring集群缩容节点组 JSON 数组
--vpd-subnetsstring扩容 VPD 子网 ID JSON 数组
--vswitch-zonestring扩容交换机可用区 ID

delete

ecctl lingjun cluster delete <id> [flags]

删除灵骏集群

  • 类型:mutation · 风险:high
  • 同步:等待 absent(waiter deleted_after_delete,超时 1800s);用 --no-wait 跳过等待。
API调用时机用途
DeleteCluster每次执行命令时执行资源操作。
DescribeCluster未指定 --no-wait轮询等待资源达到目标状态。(重复调用)
参数类型必填说明
--regionstringAlibaba Cloud region

get

ecctl lingjun cluster get <id> [flags]

查询灵骏集群

  • 类型:read · 风险:low
API调用时机用途
DescribeCluster每次执行命令时读取资源视图。
ListClusterNodes指定 --with-nodes读取资源视图。
ListClusterHyperNodes指定 --with-hyper-nodes读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔
--limitinteger最多返回资源数量(默认:100
--next-tokenstring下一页查询 Token
--resource-groupstring资源组 ID
--with-hyper-nodesboolean在 get 输出中包含集群超节点
--with-nodesboolean在 get 输出中包含集群节点

list

ecctl lingjun cluster list [flags]

查询灵骏集群列表

  • 类型:read · 风险:low
API调用时机用途
ListClusters每次执行命令时读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--fieldsstring要包含的资源字段,使用逗号分隔
--filterkey_value过滤表达式 key=value
--limitinteger最多返回资源数量(默认:100
--next-tokenstring下一页查询 Token