跳到主要内容

lingjun node-group

管理灵骏节点组资源

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

create

ecctl lingjun node-group create [flags]

创建灵骏节点组

  • 类型:mutation · 风险:medium
API调用时机用途
CreateNodeGroup每次执行命令时执行资源操作。
DescribeNodeGroup每次执行命令时读取资源视图。
参数类型必填说明
--clusterstring所属集群 ID
--namestring节点组名称
--node-groupstring节点组配置 JSON 对象,结构与 CreateNodeGroup 的 NodeGroup body 一致(例如 {"NodeGroupName":"...","Az":"...","MachineType":"...","ImageId":"...",...});支持内联 JSON 或 @file 路径
--regionstringAlibaba Cloud region
--node-unitstring节点单元配置 JSON 对象,结构与 CreateNodeGroup 的 NodeUnit body 一致(例如 {"NodeUnitId":"...","NodeUnitName":"...","ResourceGroupId":"...","MaxNodes":...});支持内联 JSON 或 @file 路径

update

ecctl lingjun node-group update <id> [flags]

更新灵骏节点组

  • 类型:mutation · 风险:medium
API调用时机用途
UpdateNodeGroup每次执行命令时执行资源操作。
DescribeNodeGroup每次执行命令时读取资源视图。
参数类型必填说明
--regionstringAlibaba Cloud region
--file-system-mount-enabledboolean启用文件系统挂载
--imagestring镜像 ID
--key-pairstring密钥对名称
--login-passwordstring登录密码(敏感:建议优先使用 --key-pair;通过 @file 或环境变量注入,避免出现在 shell 历史记录中)
--namestring节点组名称
--ram-rolestringRAM 角色名称
--user-datastring用户自定义脚本

delete

ecctl lingjun node-group delete <id> [flags]

删除灵骏节点组

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

get

ecctl lingjun node-group get <id> [flags]

查询灵骏节点组详情

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

list

ecctl lingjun node-group list [flags]

列出灵骏节点组

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