本章节指导用户将安装好的Ascend Operator组件启动起来,具体操作如下。
docker images | grep ascend-operator
cd /home/ascend-operator scp root@{软件包解压节点IP地址}:/home/ascend-operator/ascend-operator-v{version}.yaml ./
kubectl apply -f ascend-operator-v{version}.yaml
启动示例如下,出现Running表示组件启动成功:
root@ubuntu:/home/ascend-resilience-controller# kubectl apply -f ascend-operator-v5.0.RC1.yaml deployment.apps/ascend-operator-manager created serviceaccount/ascend-operator-manager created clusterrole.rbac.authorization.k8s.io/ascend-operator-manager-role created clusterrolebinding.rbac.authorization.k8s.io/ascend-operator-manager-rolebinding created customresourcedefinition.apiextensions.k8s.io/ascendjobs.mindxdl.gitee.com created root@ubuntu:/home/ascend-operator# kubectl get pod -n mindx-dl NAME READY STATUS RESTARTS AGE ... ascend-operator-7667495b6b-hwmjw 1/1 Running 0 11s ...
参数 |
类型 |
默认值 |
说明 |
---|---|---|---|
-version |
bool |
false |
Ascend Operator二进制版本号。 |
-logLevel |
int |
0 |
日志级别:
|
-maxAge |
int |
7 |
日志备份时间限制,取值范围为7~700,单位为天。 |
-isCompress |
bool |
false |
当日志文件大小达到转储阈值时,是否对日志文件进行压缩转储(该参数后面将会弃用)。 |
-kubeconfig |
string |
空字符串 |
kubeconfig的路径,当程序运行于集群外时必须配置。 |
-logFile |
string |
/var/log/mindx-dl/ascend-operator/ascend-operator.log |
日志文件。
说明:
单个日志文件超过20 MB时会触发自动转储功能,文件大小上限不支持修改。 |
-maxBackups |
int |
30 |
转储后日志文件保留个数上限,取值范围为(0,30],单位为个。 |
-enableGangScheduling |
bool |
true |
是否启用“gang”策略调度,默认开启。开启时根据任务指定的调度器进行任务调度。 |
-h |
无 |
不涉及 |
显示帮助信息。 |