Skip to content

Commit aabda86

Browse files
GallardotSbloodyS
andauthored
doc: simplify k8s deploy steps (#16402)
Signed-off-by: Gallardot <[email protected]> Co-authored-by: xiangzihao <[email protected]>
1 parent a7c8d4d commit aabda86

File tree

2 files changed

+10
-38
lines changed

2 files changed

+10
-38
lines changed

Diff for: docs/docs/en/guide/installation/kubernetes.md

+5-19
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,9 @@ If you are a new hand and want to experience DolphinScheduler functions, we reco
1616

1717
```bash
1818
# Choose the corresponding version yourself
19-
export VERSION=3.2.1
20-
helm pull oci://registry-1.docker.io/apache/dolphinscheduler-helm --version ${VERSION}
21-
tar -xvf dolphinscheduler-helm-${VERSION}.tgz
22-
cd dolphinscheduler-helm
23-
helm repo add bitnami https://charts.bitnami.com/bitnami
24-
helm dependency update .
25-
helm install dolphinscheduler .
19+
helm upgrade --install dolphinscheduler --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version>
2620
```
2721

28-
To publish the release name `dolphinscheduler` version to `test` namespace:
29-
30-
```bash
31-
$ helm install dolphinscheduler . -n test
32-
```
33-
34-
> **Tip**: If a namespace named `test` is used, the optional parameter `-n test` needs to be added to the `helm` and `kubectl` commands.
35-
3622
These commands are used to deploy DolphinScheduler on the Kubernetes cluster by default. The [Appendix-Configuration](#appendix-configuration) section lists the parameters that can be configured during installation.
3723

3824
> **Tip**: List all releases using `helm list`
@@ -112,7 +98,7 @@ helm install keda kedacore/keda \
11298
Secondly, you need to set `worker.keda.enabled` to `true` in `values.yaml` or install the chart by:
11399

114100
```bash
115-
helm install dolphinscheduler . --set worker.keda.enabled=true -n <your-namespace-to-deploy-dolphinscheduler>
101+
helm upgrade --install dolphinscheduler --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version> --set worker.keda.enabled=true
116102
```
117103

118104
Once autoscaling enabled, the number of workers will scale between `minReplicaCount` and `maxReplicaCount` based on the states
@@ -504,15 +490,15 @@ For example, if you need to deploy worker to both CPU and GPU servers in a clust
504490

505491
```bash
506492
# Install master, api-server, alert-server, and other default components, but do not install worker
507-
helm install dolphinscheduler . --set worker.enabled=false
493+
helm upgrade --install dolphinscheduler --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version> --set worker.enabled=false
508494
# Disable the installation of other components, only install worker, use the self-built CPU image, deploy to CPU servers with the `x86` label through nodeselector, and use zookeeper as the external registry center
509-
helm install dolphinscheduler-cpu-worker . \
495+
helm upgrade --install dolphinscheduler-cpu-worker --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version> \
510496
--set minio.enabled=false --set postgresql.enabled=false --set zookeeper.enabled=false \
511497
--set master.enabled=false --set api.enabled=false --set alert.enabled=false \
512498
--set worker.enabled=true --set image.tag=latest-cpu --set worker.nodeSelector.cpu="x86" \
513499
--set externalRegistry.registryPluginName=zookeeper --set externalRegistry.registryServers=dolphinscheduler-zookeeper:2181
514500
# Disable the installation of other components, only install worker, use the self-built GPU image, deploy to GPU servers with the `a100` label through nodeselector, and use zookeeper as the external registry center
515-
helm install dolphinscheduler-gpu-worker . \
501+
helm upgrade --install dolphinscheduler-gpu-worker --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version> \
516502
--set minio.enabled=false --set postgresql.enabled=false --set zookeeper.enabled=false \
517503
--set master.enabled=false --set api.enabled=false --set alert.enabled=false \
518504
--set worker.enabled=true --set image.tag=latest-gpu --set worker.nodeSelector.gpu="a100" \

Diff for: docs/docs/zh/guide/installation/kubernetes.md

+5-19
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,9 @@ Kubernetes 部署目的是在 Kubernetes 集群中部署 DolphinScheduler 服务
1616

1717
```bash
1818
# 自行选择对应的版本
19-
export VERSION=3.2.1
20-
helm pull oci://registry-1.docker.io/apache/dolphinscheduler-helm --version ${VERSION}
21-
tar -xvf dolphinscheduler-helm-${VERSION}.tgz
22-
cd dolphinscheduler-helm
23-
helm repo add bitnami https://charts.bitnami.com/bitnami
24-
helm dependency update .
25-
helm install dolphinscheduler .
19+
helm upgrade --install dolphinscheduler --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version>
2620
```
2721

28-
将名为 `dolphinscheduler` 的版本(release) 发布到 `test` 的命名空间中:
29-
30-
```bash
31-
$ helm install dolphinscheduler . -n test
32-
```
33-
34-
> **提示**: 如果名为 `test` 的命名空间被使用, 选项参数 `-n test` 需要添加到 `helm``kubectl` 命令中
35-
3622
这些命令以默认配置在 Kubernetes 集群上部署 DolphinScheduler,[附录-配置](#appendix-configuration)部分列出了可以在安装过程中配置的参数 <!-- markdown-link-check-disable-line -->
3723

3824
> **提示**: 列出所有已发布的版本,使用 `helm list`
@@ -112,7 +98,7 @@ helm install keda kedacore/keda \
11298
其次,您需要将 `values.yaml` 中的 `worker.keda.enabled` 配置设置成 `true`,或者您可以通过以下命令安装 chart:
11399

114100
```bash
115-
helm install dolphinscheduler . --set worker.keda.enabled=true -n <your-namespace-to-deploy-dolphinscheduler>
101+
helm upgrade --install dolphinscheduler --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version> --set worker.keda.enabled=true
116102
```
117103

118104
一旦自动扩缩容功能启用,worker的数量将基于任务状态在 `minReplicaCount``maxReplicaCount` 之间弹性扩缩。
@@ -503,15 +489,15 @@ common:
503489

504490
```bash
505491
# 安装 master、api-server、alert-server以及其他默认组件,但是不安装 worker
506-
helm install dolphinscheduler . --set worker.enabled=false
492+
helm upgrade --install dolphinscheduler --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version> --set worker.enabled=false
507493
# 禁用其他组件的安装,只安装 worker,使用自行建构建的 CPU镜像,通过 nodeselector部署到附带 x86标签的 CPU服务器,使用 zookeeper作为外部注册中心
508-
helm install dolphinscheduler-cpu-worker . \
494+
helm upgrade --install dolphinscheduler-cpu-worker --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version> \
509495
--set minio.enabled=false --set postgresql.enabled=false --set zookeeper.enabled=false \
510496
--set master.enabled=false --set api.enabled=false --set alert.enabled=false \
511497
--set worker.enabled=true --set image.tag=latest-cpu --set worker.nodeSelector.cpu="x86" \
512498
--set externalRegistry.registryPluginName=zookeeper --set externalRegistry.registryServers=dolphinscheduler-zookeeper:2181
513499
# 禁用其他组件的安装,只安装 worker,使用自行建构建的 GPU 镜像,通过 nodeselector部署到附带 a100标签的 gpu服务器,使用zookeeper作为外部注册中心
514-
helm install dolphinscheduler-gpu-worker . \
500+
helm upgrade --install dolphinscheduler-gpu-worker --create-namespace --namespace dolphinscheduler oci://registry-1.docker.io/apache/dolphinscheduler-helm --version <version> \
515501
--set minio.enabled=false --set postgresql.enabled=false --set zookeeper.enabled=false \
516502
--set master.enabled=false --set api.enabled=false --set alert.enabled=false \
517503
--set worker.enabled=true --set image.tag=latest-gpu --set worker.nodeSelector.gpu="a100" \

0 commit comments

Comments
 (0)