File tree Expand file tree Collapse file tree 19 files changed +230
-7
lines changed Expand file tree Collapse file tree 19 files changed +230
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Install Argo CD with DevStream
2
2
3
+ ## InstanceID Prefix
4
+
5
+ The ` instanceID ` prefix must be ` argocd ` , the minimum tools configuration example:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : argocd
11
+ ` ` `
12
+
3
13
## Default Configs
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# 使用 DevStream 部署 Argo CD
2
2
3
+ ## 前缀匹配
4
+
5
+ ` instanceID ` 的前缀需要是 ` argocd ` ,最小化 tools 配置示例:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : argocd
11
+ ` ` `
12
+
3
13
## 默认配置
4
14
5
15
| 配置项 | 默认值 | 描述 |
Original file line number Diff line number Diff line change 1
1
# Install Artifactory with DevStream
2
2
3
+ ## InstanceID Prefix
4
+
5
+ The ` instanceID ` prefix must be ` artifactory ` , the minimum tools configuration example:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : artifactory
11
+ ` ` `
12
+
3
13
## Default Configs
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# 使用 DevStream 部署 Artifactory
2
2
3
+ ## 前缀匹配
4
+
5
+ ` instanceID ` 的前缀需要是 ` artifactory ` ,最小化 tools 配置示例:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : artifactory
11
+ ` ` `
12
+
3
13
## 默认配置
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# Install DevLake with DevStream
2
2
3
+ ## InstanceID Prefix
4
+
5
+ The ` instanceID ` prefix must be ` devlake ` , the minimum tools configuration example:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : devlake
11
+ ` ` `
12
+
3
13
## Default Configs
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# 使用 DevStream 部署 DevLake
2
2
3
+ ## 前缀匹配
4
+
5
+ ` instanceID ` 的前缀需要是 ` devlake ` ,最小化 tools 配置示例:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : devlake
11
+ ` ` `
12
+
3
13
## 默认配置
4
14
5
15
| 配置项 | 默认值 | 描述 |
Original file line number Diff line number Diff line change 18
18
` ` `
19
19
20
20
在这个配置文件里,和插件相关的配置 name 和 instanceID,前者表示你将使用 ` helm-installer` 插件,后者表示插件实例名。
21
- 请注意这个 instanceID 使用了 "argocd- " 前缀,DevStream 会识别这个前缀,尝试寻找 Argo CD 应用对应的 Chart,并设置一系列默认值,然后开始部署。
21
+ 请注意这个 instanceID 使用了 "argocd" 前缀,DevStream 会识别这个前缀,尝试寻找 Argo CD 应用对应的 Chart,并设置一系列默认值,然后开始部署。
22
22
23
23
你可以在 [Install Argo CD with DevStream](./argocd.zh.md) 中查看 DevStream 为你设置了哪些默认值。
24
24
47
47
chartName: ""
48
48
version: ""
49
49
namespace: ""
50
+ releaseName: ""
50
51
wait: true
51
52
timeout: 10m
52
53
upgradeCRDs: true
58
59
# ## 2.1、instanceID 使用技巧
59
60
60
61
instanceID 的前缀如果能够匹配到某个已经被支持的工具(详见文末列表),那么 DevStream 会为你设置一系列的默认值。
61
- 比如 "argocd-001" 的前缀 "argocd-" 能够匹配到 "argocd" + "-" ,因此 Argo CD 的默认 Chart 配置会被应用,于是如下最小化配置:
62
+ 比如 "argocd-001" 的前缀 "argocd-" 能够匹配到 "argocd",因此 Argo CD 的默认 Chart 配置会被应用,于是如下最小化配置:
62
63
63
64
` ` ` yaml
64
65
tools:
@@ -74,13 +75,14 @@ tools:
74
75
dependsOn: [ ]
75
76
options:
76
77
repo:
77
- name: ""
78
- url: ""
78
+ name: "argo "
79
+ url: "https://argoproj.github.io/argo-helm "
79
80
chart:
80
81
chartPath: ""
81
- chartName: ""
82
+ chartName: "argo/argo-cd "
82
83
version: ""
83
- namespace: ""
84
+ namespace: "argocd"
85
+ releaseName: "argocd"
84
86
wait: true
85
87
timeout: 10m
86
88
upgradeCRDs: true
Original file line number Diff line number Diff line change 1
1
# Install kube-prometheus with DevStream
2
2
3
+ ## InstanceID Prefix
4
+
5
+ The ` instanceID ` prefix must be ` kube-prometheus ` , the minimum tools configuration example:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : kube-prometheus
11
+ ` ` `
12
+
3
13
## Default Configs
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# 使用 DevStream 部署 kube-prometheus
2
2
3
+ ## 前缀匹配
4
+
5
+ ` instanceID ` 的前缀需要是 ` kube-prometheus ` ,最小化 tools 配置示例:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : kube-prometheus
11
+ ` ` `
12
+
3
13
## 默认配置
4
14
5
15
| 配置项 | 默认值 | 描述 |
Original file line number Diff line number Diff line change 1
1
# Install OpenLDAP with DevStream
2
2
3
+ ## InstanceID Prefix
4
+
5
+ The ` instanceID ` prefix must be ` openldap ` , the minimum tools configuration example:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : openldap
11
+ ` ` `
12
+
3
13
### Default Configs
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# 使用 DevStream 部署 OpenLDAP
2
2
3
+ ## 前缀匹配
4
+
5
+ ` instanceID ` 的前缀需要是 ` openldap ` ,最小化 tools 配置示例:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : openldap
11
+ ` ` `
12
+
3
13
## 默认配置
4
14
5
15
| 配置项 | 默认值 | 描述 |
Original file line number Diff line number Diff line change 1
1
# Install SonarQube with DevStream
2
2
3
+ ## InstanceID Prefix
4
+
5
+ The ` instanceID ` prefix must be ` sonarqube ` , the minimum tools configuration example:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : sonarqube
11
+ ` ` `
12
+
3
13
### Default Configs
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# Install Tekton with DevStream
2
2
3
+ ## InstanceID Prefix
4
+
5
+ The ` instanceID ` prefix must be ` tekton ` , the minimum tools configuration example:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : tekton
11
+ ` ` `
12
+
3
13
## Default Configs
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# 使用 DevStream 部署 Tekton
2
2
3
+ ## 前缀匹配
4
+
5
+ ` instanceID ` 的前缀需要是 ` tekton ` ,最小化 tools 配置示例:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : tekton
11
+ ` ` `
12
+
3
13
## 默认配置
4
14
5
15
| 配置项 | 默认值 | 描述 |
Original file line number Diff line number Diff line change 1
1
# Install Vault with DevStream
2
2
3
+ ## InstanceID Prefix
4
+
5
+ The ` instanceID ` prefix must be ` vault ` , the minimum tools configuration example:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : vault
11
+ ` ` `
12
+
3
13
## Default Configs
4
14
5
15
| key | default value | description |
Original file line number Diff line number Diff line change 1
1
# 使用 DevStream 部署 Vault
2
2
3
+ ## 前缀匹配
4
+
5
+ ` instanceID ` 的前缀需要是 ` vault ` , 最小化 tools 配置示例:
6
+
7
+ ``` yaml
8
+ tools :
9
+ - name : helm-installer
10
+ instanceID : vault
11
+ ` ` `
12
+
3
13
## 默认配置
4
14
5
15
| 配置项 | 默认值 | 描述 |
Original file line number Diff line number Diff line change
1
+ # Replacing Helm with DevStream Makes Application Deployment Easier
Original file line number Diff line number Diff line change
1
+ # 用 DevStream 替代 Helm 让应用部署更加简单
2
+
3
+ helm-installer 插件实现了比 helm 更加简单和容易上手的方式来快速部署提供了 Helm Chart 的应用。
4
+
5
+ 下面以 Argo CD 为例,介绍如何使用 DevStream 部署 Argo CD。
6
+
7
+ ## 1 下载
8
+
9
+ 进入你的工作目录,运行:
10
+
11
+ ``` shell
12
+ sh -c " $( curl -fsSL https://download.devstream.io/download.sh) "
13
+ ```
14
+
15
+ !!! quote "可选"
16
+ 你可以将 ` dtm ` 移到 PATH 中。例如:` mv dtm /usr/local/bin/ ` 。
17
+
18
+ 更多安装方式详见[安装dtm](../install.zh.md)。
19
+
20
+ ## 2 配置
21
+
22
+ 创建一个 ` config.yaml ` 文件,内容如下:
23
+
24
+ ``` yaml title="config.yaml"
25
+ config :
26
+ state :
27
+ backend : local
28
+ options :
29
+ stateFile : devstream.state
30
+ tools :
31
+ - name : helm-installer
32
+ instanceID : argocd
33
+ ` ` `
34
+
35
+ 其中 ` instanceID` 为 "argocd",匹配了 "argocd" 前缀,DevStream 会识别这个前缀,尝试寻找 Argo CD 应用对应的 Chart,并设置一系列默认值,然后开始部署。
36
+
37
+ 通过 DevStream 安装 Helm 应用,你不需要搜索/阅读应用的官方文档,也不需要依次运行 `helm repo add` 等命令。你只需要知道应用的名称,将其作为 `instanceID` 的前缀,然后运行即可。这里是 [DevStream 支持的所有应用列表及前缀对应关系](../plugins/helm-installer/helm-installer.zh.md#3)。
38
+
39
+ # # 3 初始化
40
+
41
+ 运行以下命令以下载相应的插件:
42
+
43
+ ` ` ` shell
44
+ ./dtm init -f config.yaml
45
+ ` ` `
46
+
47
+ # # 4 应用
48
+
49
+ 运行以下命令以安装 Argo CD:
50
+
51
+ ` ` ` shell
52
+ ./dtm apply -f config.yaml -y
53
+ ` ` `
54
+
55
+ <script id="asciicast-549701" src="https://asciinema.org/a/549701.js" async></script>
56
+
57
+ # # 5 检查结果
58
+
59
+ 运行以下命令,可以看到 Argo CD 已经安装成功:
60
+
61
+ ` ` ` shell
62
+ kubectl get pods -n argocd
63
+ ` ` `
64
+
65
+ <script id="asciicast-549703" src="https://asciinema.org/a/549703.js" async></script>
66
+
67
+ # # 6 更进一步
68
+
69
+ DevStream 除了通过提供默认配置来简化应用部署,还提供了完整的 Helm values 文件的配置能力,详见[自定义Chart配置](../plugins/helm-installer/helm-installer.zh.md#22-chart)
Original file line number Diff line number Diff line change 129
129
- GitOps :
130
130
- use-cases/gitops/*.md
131
131
- Reference :
132
- - use-cases/reference/*.md
132
+ - use-cases/reference/*.md
133
+ - use-cases/helm-installer*.md
133
134
- Plugins :
134
135
- plugins/plugins-list*.md
135
136
- Helm Installer :
You can’t perform that action at this time.
0 commit comments