Skip to content

Commit

Permalink
openi-octopus-1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
liutension committed Aug 25, 2020
1 parent f1c0889 commit b8d3334
Show file tree
Hide file tree
Showing 639 changed files with 41,751 additions and 3,082 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ And the system need [NTP](http://www.ntp.org/) service for clock synchronization
To deploy and use the system, the process consists of the following steps.

1. [Deploy Kubernetes for OPENI-octopus system](./deepops/README_zh.md)
2. [Deploy OPENI-octopus system services](./install_openi_octopus.md)
2. [Deploy OPENI-octopus system services](./doc/install_openi_octopus.md)
3. Access [web portal](./web-portal/README.md) for job submission and cluster management

#### Job management
Expand Down
2 changes: 1 addition & 1 deletion README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ OPENI以开源的模式运营:来自学术和工业界的贡献我们都非常
执行以下几个步骤来部署和使用本系统。

1. [部署适配OpenI章鱼系统的kubernetes](./deepops/README_zh.md)
2. [部署OpenI章鱼系统服务](./install_openi_octopus_zh.md)
2. [部署OpenI章鱼系统服务](./doc/install_openi_octopus_zh.md)
3. 访问[web门户页面](./web-portal/README.zh-CN.md) 进行任务提交和集群管理

#### 作业管理
Expand Down
41 changes: 41 additions & 0 deletions charts/.drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
kind: pipeline
name: pipeline-octopus-charts
platform:
os: linux
arch: amd64
steps:
- name: pull
image: alpine/git
volumes:
- name: gitssh
path: /root/.ssh
commands:
- git clone [email protected]:open-intelligence/charts.git ./.tmp/charts
- name: package
image: alpine/helm
commands:
- mkdir -p ./.tmp/build
- helm package ${DRONE_TAG%-*} -d ./.tmp/build --dependency-update --version ${DRONE_TAG##*-}
- cp -rf ./.tmp/build/* ./.tmp/charts/docs
- helm repo index ./.tmp/charts/docs --url https://open-intelligence.github.io/charts
- name: sync
image: alpine/git
volumes:
- name: gitssh
path: /root/.ssh
commands:
- cd ./.tmp/charts
- git config --global user.name "ci-robot"
- git config --global user.email "[email protected]"
- git add --all ./
- git commit -m "sync ${DRONE_TAG}"
- git push origin

trigger:
event:
- tag

volumes:
- name: gitssh
host:
path: /root/.ssh
9 changes: 9 additions & 0 deletions charts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
logs/
coverage/
.idea/
run/
.DS_Store
*.sw*
*.un~
logs
tmp/
27 changes: 27 additions & 0 deletions charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
/values.yaml 值文件
```

相关目录或者文件具有如下约定:

- 一般情况下,单个chart包描述的是`若干服务组成的最小可用功能单元`
- 在单个服务无法提供完善的`最小可用功能`时,不应该定义一个chart包对应一个服务
- 在一个chart包过于庞大冗余,且若干模块都可以提供一部分完整的功能,应考虑拆分成子chart,通过requirements.yaml或者charts来依赖
- 约定每个chart包中`.helmignore`文件配置`*.ign.yaml`项,用于在打包是排除内部配置或者文件
- 内部相关的values配置文件都以`.ign.yaml`后缀结尾,同时应描述系统环境信息;例如:`values-prod.yunnao.ign.yaml`表示`内部云脑系统在PROD环境下的配置文件`

## 开发

基于helm cli生成的chart模块开发
Expand All @@ -25,3 +33,22 @@
$ helm create exampleChart
```

## 开源

本项目通过CI工具Drone实现自动打包上传到github中的开源仓库中,详细实现见`.drone.yml`,开源仓库地址为 [https://github.com/open-intelligence/charts](https://github.com/open-intelligence/charts)

### 打包

本项目通过在gitlab项目面板中 <font color="red">构建`tag`方式</font> 触发打包上传chart包
其中`tag`名称对应项目根目录下的chart包目录名称, ``也就说`tag`名称决定了项目中需要打包上传chart包`` ,例如:

```angular2html
# tag 名称为 web-portal
# 对应需要打包的chart为 /charts/web-portal
# 打包后生成文件如下
$ ls .
$ web-portal-0.1.0.tgz
```



6 changes: 0 additions & 6 deletions charts/frameworkcontroller/templates/NOTES.txt

This file was deleted.

53 changes: 0 additions & 53 deletions charts/frameworkcontroller/templates/_helpers.tpl

This file was deleted.

59 changes: 0 additions & 59 deletions charts/frameworkcontroller/templates/rbac.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions charts/frameworkcontroller/templates/statefulset.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions charts/frameworkcontroller/values.yaml

This file was deleted.

1 change: 1 addition & 0 deletions charts/grafana/templates/grafana-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
{{- end }}
containers:
- image: grafana/grafana:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: grafana
# env:
resources:
Expand Down
8 changes: 4 additions & 4 deletions charts/grafana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ global:

image:
tag: "6.2.0"
pullPolicy: IfNotPresent

env:
GF_AUTH_BASIC_ENABLED: "true"
Expand All @@ -17,10 +18,10 @@ env:
GF_SECURITY_ADMIN_USER: "admin"
GF_SECURITY_ADMIN_PASSWORD: "Pa22word"
GF_SECURITY_ALLOW_EMBEDDING: "true"
GF_SERVER_ROOT_URL: "/grafana-core"
GF_SERVER_ROOT_URL: "/grafana"

prometheus:
customAddr: "http://octopus-prometheus:9090"
customAddr: ""
protocol: "http"
host: "prometheus"
port: "9090"
Expand All @@ -30,13 +31,12 @@ service:
port: 3000
targetPort: 3000


ingress:
enabled: true
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
path: /grafana-core
path: /grafana
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
Expand Down
2 changes: 1 addition & 1 deletion charts/image-factory/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ global:
repository:
address: ""
pathname: "openi"
pullPolicy: Always
pullPolicy: IfNotPresent
nodeSelector: {}

agent:
Expand Down
19 changes: 0 additions & 19 deletions charts/jupyterlab-proxy/templates/NOTES.txt

This file was deleted.

Loading

0 comments on commit b8d3334

Please sign in to comment.