MindCluster Resilience Controller使用容器部署,在连接K8s时可以选择使用ServiceAccount或KubeConfig文件进行认证,两种方式差异可参考使用ServiceAccount和KubeConfig差异。
docker images | grep resilience-controller
cd /home/ascend-resilience-controller scp root@{软件包解压节点IP地址}:/home/ascend-resilience-controller/resilience-controller-v{version}.yaml ./
kubectl apply -f resilience-controller-v{version}.yaml
kubectl apply -f resilience-controller-without-token-v{version}.yaml
启动示例如下:
root@ubuntu:/home/ascend-resilience-controller# kubectl apply -f resilience-controller-v5.0.0.2.yaml serviceaccount/resilience-controller createdclusterrole.rbac.authorization.k8s.io/pods-resilience-controller-role createdclusterrolebinding.rbac.authorization.k8s.io/resilience-controller-rolebinding createddeployment.apps/resilience-controller created
NAME READY STATUS RESTARTS AGE ... resilience-controller-7667495b6b-hwmjw 1/1 Running 0 11s ...
参数 |
类型 |
默认值 |
说明 |
---|---|---|---|
-version |
bool |
false |
MindCluster Resilience Controller二进制版本号。 |
-logLevel |
int |
0 |
日志级别:
|
-maxAge |
int |
7 |
日志备份时间限制,取值范围为[7,700],单位为天。 |
-logFile |
string |
/var/log/mindx-dl/resilience-controller/run.log |
日志文件。 说明:
单个日志文件超过20 MB时会触发自动转储功能,文件大小上限不支持修改。转储后文件的命名格式为:run-触发转储的时间.log,如run-2023-10-07T03-38-24.402.log。 |
-maxBackups |
int |
30 |
转储后日志文件保留个数上限,取值范围为(0,30],单位为个。 |
-h或者-help |
无 |
不涉及 |
显示帮助信息。 |