Browse Source

improve doc

k8s
liutension 2 years ago
parent
commit
ea707d474f
6 changed files with 30 additions and 17 deletions
  1. +5
    -0
      charts/tasksetcontroller/templates/deployment.yaml
  2. +4
    -0
      charts/tasksetcontroller/values.yaml
  3. +4
    -4
      doc/install_openi_octopus.md
  4. +4
    -4
      doc/install_openi_octopus_zh.md
  5. +7
    -3
      kubebox-server/README.md
  6. +6
    -6
      taskset/pkg/tasksetcontroller/docs/HOW_TO.md

+ 5
- 0
charts/tasksetcontroller/templates/deployment.yaml View File

@@ -24,6 +24,11 @@ spec:
volumeMounts:
- name: localtime
mountPath: /etc/localtime
env:
- name: WorkerAmount
value: "{{ .Values.common.workerAmount }}"
- name: CacheCreationTimeoutSec
value: "{{ .Values.common.cacheCreationTimeoutSec }}"
resources:
{{ toYaml .Values.resources | indent 10 }}
{{- with .Values.global.nodeSelector }}


+ 4
- 0
charts/tasksetcontroller/values.yaml View File

@@ -12,6 +12,10 @@ global:
pullPolicy: IfNotPresent
nodeSelector: {}

common:
workerAmount: "10"
cacheCreationTimeoutSec: "300"

image:
name: "tasksetcontroller"
tag: ""


+ 4
- 4
doc/install_openi_octopus.md View File

@@ -67,13 +67,13 @@ Here is a set of Octopus service is deployed quickly through Helm 3.0.0+, Please

### Necessary installation steps

1. [install taskset-pipeline service](../taskset/pkg/pipeline/docs/deployment.md)(Learn more about pipeline component [here](../taskset/pkg/pipeline/docs/document.md)) and [install pipeline-plugins service](../rest-server-plugin/README.md)
1. [install kube-batch service](https://github.com/kubernetes-sigs/kube-batch/blob/master/doc/usage/tutorial.md#install-kube-batch-for-kubernetes), Or install through chart in the project

2. [install rest-server service](../rest-server/README.md) and [install rest-server-storage service](../rest-server-storage/README.md)
2. [install tasksetcontroller service](../taskset/pkg/tasksetcontroller/docs/HOW_TO.md)

3. [install tasksetcontroller service](../taskset/pkg/tasksetcontroller/docs/HOW_TO.md)
3. [install taskset-pipeline service](../taskset/pkg/pipeline/docs/deployment.md)(Learn more about pipeline component [here](../taskset/pkg/pipeline/docs/document.md)) and [install pipeline-plugins service](../rest-server-plugin/README.md)

4. [install kube-batch service](https://github.com/kubernetes-sigs/kube-batch/blob/master/doc/usage/tutorial.md#install-kube-batch-for-kubernetes), Or install through chart in the project
4. [install rest-server service](../rest-server/README.md) and [install rest-server-storage service](../rest-server-storage/README.md)

5. [install web-portal service](../web-portal/README.md)



+ 4
- 4
doc/install_openi_octopus_zh.md View File

@@ -65,13 +65,13 @@ OpenI-octopus系统需要一个私有镜像仓库支持,请[安装harbor服务

自定义安装过程中,需要编译打包相应的项目代码为镜像,之后可以通过[charts](../charts/README.md)中相应服务的chart包安装.

1. [安装taskset-pipeline服务](../taskset/pkg/pipeline/docs/deployment.md)(了解更多Pipeline组件点击[这里](../taskset/pkg/pipeline/docs/document.md))与[安装pipeline-plugins服务](../rest-server-plugin/README.md)
1. [安装kube-batch服务](https://github.com/kubernetes-sigs/kube-batch/blob/master/doc/usage/tutorial.md#install-kube-batch-for-kubernetes), 或者通过项目中的chart安装

2. [安装rest-server服务](../rest-server/README.zh-CN.md)与[安装rest-server-storage服务](../rest-server-storage/README.md)
2. [安装tasksetcontroller服务](../taskset/pkg/tasksetcontroller/docs/HOW_TO.md)

3. [安装tasksetcontroller服务](../taskset/pkg/tasksetcontroller/docs/HOW_TO.md)
3. [安装taskset-pipeline服务](../taskset/pkg/pipeline/docs/deployment.md)(了解更多Pipeline组件点击[这里](../taskset/pkg/pipeline/docs/document.md))与[安装pipeline-plugins服务](../rest-server-plugin/README.md)

4. [安装kube-batch服务](https://github.com/kubernetes-sigs/kube-batch/blob/master/doc/usage/tutorial.md#install-kube-batch-for-kubernetes), 或者通过项目中的chart安装
4. [安装rest-server服务](../rest-server/README.zh-CN.md)与[安装rest-server-storage服务](../rest-server-storage/README.md)

5. [安装web-portal服务](../web-portal/README.zh-CN.md)



+ 7
- 3
kubebox-server/README.md View File

@@ -26,8 +26,12 @@
```

### 部署
```bash
# Modify the placeholder `${xxx}` configuration item in the file
~/kubebox-server$ kubectl apply -f ./build/kubebox-server.yaml

通过按需求修改 `./charts/kubebox-server/value.yaml` 文件中的配置
```
// 安装
helm install octopus ./charts/kubebox-server
```
发布成功后可以通过 http://${nodeip}/terminal/ 访问。

+ 6
- 6
taskset/pkg/tasksetcontroller/docs/HOW_TO.md View File

@@ -38,9 +38,9 @@ cacheCreationTimeoutSec: 300 #等待一个新创建资源出现在本地的最

### 2.3 在kubernetes集群里面启动

修改 `./deploy/tasksetcontroller/deployment.yaml`文件,填写期望的tasksetcontroller的镜像地址
然后执行 `kubectl create -f deployment.yaml`
您也可以通过环境变量设置`WorkerAmount` 和 `CacheCreationTimeoutSec`,WorkerAmount默认是10,CacheCreationTimeoutSec默认
是300秒。在kubernetes里面启动不需要设置`K8sAPIServer`和`K8sConfigFile`两个环境变量。
通过按需求修改 `./charts/tasksetcontroller/value.yaml` 文件中的配置
```
// 安装
helm install octopus ./charts/tasksetcontroller
```

Loading…
Cancel
Save