|
2 | 2 |
|
3 | 3 | ## Usage
|
4 | 4 |
|
5 |
| -[Helm](https://helm.sh) must be installed to use the charts. Please refer to |
6 |
| -Helm's [documentation](https://helm.sh/docs) to get started. |
| 5 | +Bioos 开源版本以 [Helm](https://helm.sh) 形式分发,安装参考 [Bioos 开源部署方案设计](https://bytedance.feishu.cn/docx/IrwHdNXi8oGYRPxe6VCcCPsMnmf) |
7 | 6 |
|
8 |
| -Once Helm has been set up correctly, add the repo as follows: |
| 7 | +本仓库提供 helm 包的分发,适用于 github 部署 helm 仓库 |
9 | 8 |
|
10 |
| - helm repo add bioos https://markthink.github.io/helm-charts |
| 9 | +```bash |
| 10 | +helm repo add bioos https://markthink.github.io/helm-charts |
| 11 | +helm search repo bioos |
| 12 | +``` |
| 13 | + |
| 14 | +如果要更新仓库,执行 `helm repo update` 获取最新的仓库部署包 |
| 15 | + |
| 16 | + |
| 17 | +### Step1. 安装 mysql |
| 18 | + |
| 19 | +```bash |
| 20 | +helm install mysql \ |
| 21 | + --set auth.rootPassword="admin",auth.database=bioos,auth.username=admin,auth.password=admin,global.storageClass=nfs-csi,primary.persistence.size=50Gi \ |
| 22 | + oci://registry-1.docker.io/bitnamicharts/mysql |
| 23 | +``` |
11 | 24 |
|
12 |
| -If you had already added this repo earlier, run `helm repo update` to retrieve |
13 |
| -the latest versions of the packages. You can then run `helm search repo |
14 |
| -bioos` to see the charts. |
| 25 | +### Step2. 安装 cromwell/jupyterhub |
15 | 26 |
|
16 |
| -To install the <chart-name> chart: |
| 27 | +参考 charts/cromwell/values.yaml|charts/jupyterhub/values.example.yaml 修改配置 |
17 | 28 |
|
18 |
| - helm install my-<chart-name> <alias>/<chart-name> |
| 29 | +```bash |
| 30 | +helm install cromwell bioos/cromwell -f values_well.yaml |
| 31 | +helm install jupyterhub bioos/jupyterhub -f values_hub.yaml |
| 32 | +``` |
19 | 33 |
|
20 |
| -To uninstall the chart: |
| 34 | +### Step3. 安装 Bioos apiserver/web |
21 | 35 |
|
22 |
| - helm delete my-<chart-name> |
| 36 | +参考 charts/bioos/values.yaml 修改配置 |
23 | 37 |
|
| 38 | +```bash |
| 39 | +helm install cromwell bioos/bioos -f values.yaml |
| 40 | +``` |
24 | 41 |
|
25 | 42 |
|
26 |
| -[helm 集成 kustomization](https://austindewey.com/2020/07/27/patch-any-helm-chart-template-using-a-kustomize-post-renderer/) |
| 43 | +# 参考资源: |
| 44 | +- [helm 集成 kustomization](https://austindewey.com/2020/07/27/patch-any-helm-chart-template-using-a-kustomize-post-renderer/) |
| 45 | +- https://github.com/kubernetes-sigs/kustomize/issues/680 |
| 46 | +- https://github.com/kubernetes-sigs/kustomize/issues/3787 |
27 | 47 |
|
28 | 48 | ```bash
|
29 | 49 | helm install demo $PATH_TO_CHART --post-renderer=./hook.sh
|
30 | 50 | ```
|
31 | 51 |
|
32 |
| -https://github.com/kubernetes-sigs/kustomize/issues/680 |
33 |
| -https://github.com/kubernetes-sigs/kustomize/issues/3787 |
|
0 commit comments