命令行工具¶
argon
是通用媒体云平台的命令行工具,使用它可以让我们可以在命令行高效地完成绝大多数的资源管理工作。
安装¶
下载对应平台的安装包,并解压放到合适的位置。
tar -xzf darwin_x86.argon.tar.gz ./
mv argon /usr/local/bin/argon
配置文件¶
默认的,命令行工具使用 /etc/argon/config.yaml
, $HOME/.argon/config.yaml
的顺序查找配置文件,
此外,还可以通过环境变量 ARGONCONFIG=<your_path_to_config_file>
或argon --config <your_path_to_config_file>
指定配置文件。
配置文件的使用例子如下:
apiversion: v1
client:
clusters:
- test:
url: 10.200.12.110:31500
users:
- testuser:
mode: normal
password: ********
username: testuser
context:
current_cluster: test
current_user: testuser
namespace: ab413c83-573f-4a42-8a50-ab89d01563ce
workspace: 9d10d32a-315d-4386-99ef-6b49313d7d55
token:
access_token:
refresh_token:
expires_in:
token_type:
概要¶
命令行工具支持以下几种模式。
全局选项¶
# 全局选项
argon \
--loglevel \ #设置日志等级
--verbose -v \ #启动啰嗦模式
--instance-id \
--argon-server -s \ #指定特定的argon server
--secure -e \ #启用TLS
--insecure-skip-verify -k \ #允许不安全的证书
--namespace -n \ #指定特定的namespace
--config #使用指定的配置文件
参考¶
-
argon job - 任务管理相关命令
-
argon image - 镜像管理相关命令
-
argon workflow - 工作流管理相关命令
-
argon volume - 存储卷管理相关命令
-
argon namespace - 工作组管理相关命令
-
argon version - 打印版本信息