Skip to content

Commit 0d1a527

Browse files
Syspretor玖宇
andauthored
Feat: add helm config (#4837)
Signed-off-by: 玖宇 <guotongyu.gty@alibaba-inc.com> Co-authored-by: 玖宇 <guotongyu.gty@alibaba-inc.com>
1 parent a6cf065 commit 0d1a527

9 files changed

Lines changed: 64 additions & 0 deletions

charts/fluid/fluid/templates/controller/alluxioruntime_controller.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ spec:
4545
- --runtime-workers={{ .Values.runtime.alluxio.runtimeWorkers }}
4646
- --kube-api-qps={{ .Values.runtime.alluxio.kubeClientQPS }}
4747
- --kube-api-burst={{ .Values.runtime.alluxio.kubeClientBurst }}
48+
- --workqueue-qps={{ .Values.runtime.alluxio.workQueueQPS }}
49+
- --workqueue-burst={{ .Values.runtime.alluxio.workQueueBurst }}
4850
- --pprof-addr=:6060
4951
- --enable-leader-election
5052
- --leader-election-namespace={{ include "fluid.namespace" . }}
@@ -92,6 +94,9 @@ spec:
9294
value: {{ template "fluid.helmDriver" .}}
9395
- name: ALLUXIO_MOUNT_CONFIG_STORAGE
9496
value: {{ .Values.runtime.alluxio.mountConfigStorage }}
97+
{{- if .Values.runtime.alluxio.env }}
98+
{{ toYaml .Values.runtime.alluxio.env | nindent 10 }}
99+
{{- end }}
95100
ports:
96101
- containerPort: 8080
97102
name: metrics

charts/fluid/fluid/templates/controller/dataset_controller.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ spec:
4242
- --pprof-addr=:6060
4343
- --enable-leader-election
4444
- --leader-election-namespace={{ include "fluid.namespace" . }}
45+
- --reconcile-workers={{ .Values.dataset.runtimeWorkers }}
46+
- --kube-api-qps={{ .Values.dataset.kubeClientQPS }}
47+
- --kube-api-burst={{ .Values.dataset.kubeClientBurst }}
48+
- --workqueue-qps={{ .Values.dataset.workQueueQPS }}
49+
- --workqueue-burst={{ .Values.dataset.workQueueBurst }}
4550
env:
4651
{{- if .Values.workdir }}
4752
- name: FLUID_WORKDIR

charts/fluid/fluid/templates/controller/efcruntime_controller.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ spec:
4747
- --runtime-workers={{ .Values.runtime.efc.runtimeWorkers }}
4848
- --kube-api-qps={{ .Values.runtime.efc.kubeClientQPS }}
4949
- --kube-api-burst={{ .Values.runtime.efc.kubeClientBurst }}
50+
- --workqueue-qps={{ .Values.runtime.efc.workQueueQPS }}
51+
- --workqueue-burst={{ .Values.runtime.efc.workQueueBurst }}
5052
command: ["efcruntime-controller", "start"]
5153
env:
5254
{{- if .Values.runtime.mountRoot }}
@@ -91,6 +93,9 @@ spec:
9193
{{- end }}
9294
value: {{ join "," $secretList | quote }}
9395
{{- end }}
96+
{{- if .Values.runtime.efc.env }}
97+
{{ toYaml .Values.runtime.efc.env | nindent 10 }}
98+
{{- end }}
9499
ports:
95100
- containerPort: 8080
96101
name: metrics

charts/fluid/fluid/templates/controller/goosefsruntime_controller.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ spec:
7979
- name: FLUID_SYNC_RETRY_DURATION
8080
value: {{ .Values.runtime.syncRetryDuration | quote }}
8181
{{- end }}
82+
{{- if .Values.runtime.goosefs.env }}
83+
{{ toYaml .Values.runtime.goosefs.env | nindent 10 }}
84+
{{- end }}
8285
ports:
8386
- containerPort: 8080
8487
name: metrics

charts/fluid/fluid/templates/controller/jindoruntime_controller.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ spec:
4444
- --runtime-workers={{ .Values.runtime.jindo.runtimeWorkers }}
4545
- --kube-api-qps={{ .Values.runtime.jindo.kubeClientQPS }}
4646
- --kube-api-burst={{ .Values.runtime.jindo.kubeClientBurst }}
47+
- --workqueue-qps={{ .Values.runtime.jindo.workQueueQPS }}
48+
- --workqueue-burst={{ .Values.runtime.jindo.workQueueBurst }}
4749
- --pprof-addr=:6060
4850
- --enable-leader-election
4951
- --leader-election-namespace={{ include "fluid.namespace" . }}
@@ -91,6 +93,9 @@ spec:
9193
{{- end }}
9294
- name: HELM_DRIVER
9395
value: {{ template "fluid.helmDriver" . }}
96+
{{- if .Values.runtime.jindo.env }}
97+
{{ toYaml .Values.runtime.jindo.env | nindent 10 }}
98+
{{- end }}
9499
ports:
95100
- containerPort: 8080
96101
name: metrics

charts/fluid/fluid/templates/controller/juicefsruntime_controller.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ spec:
4545
- --runtime-workers={{ .Values.runtime.juicefs.runtimeWorkers }}
4646
- --kube-api-qps={{ .Values.runtime.juicefs.kubeClientQPS }}
4747
- --kube-api-burst={{ .Values.runtime.juicefs.kubeClientBurst }}
48+
- --workqueue-qps={{ .Values.runtime.juicefs.workQueueQPS }}
49+
- --workqueue-burst={{ .Values.runtime.juicefs.workQueueBurst }}
4850
- --leader-election-namespace={{ include "fluid.namespace" . }}
4951
command: ["juicefsruntime-controller", "start"]
5052
env:
@@ -80,6 +82,9 @@ spec:
8082
{{- end }}
8183
- name: HELM_DRIVER
8284
value: {{ template "fluid.helmDriver" . }}
85+
{{- if .Values.runtime.juicefs.env }}
86+
{{ toYaml .Values.runtime.juicefs.env | nindent 10 }}
87+
{{- end }}
8388
ports:
8489
- containerPort: 8080
8590
name: metrics

charts/fluid/fluid/templates/controller/thinruntime_controller.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ spec:
4545
- --runtime-workers={{ .Values.runtime.thin.runtimeWorkers }}
4646
- --kube-api-qps={{ .Values.runtime.thin.kubeClientQPS }}
4747
- --kube-api-burst={{ .Values.runtime.thin.kubeClientBurst }}
48+
- --workqueue-qps={{ .Values.runtime.thin.workQueueQPS }}
49+
- --workqueue-burst={{ .Values.runtime.thin.workQueueBurst }}
4850
- --leader-election-namespace={{ include "fluid.namespace" . }}
4951
command: ["thinruntime-controller", "start"]
5052
env:
@@ -64,6 +66,9 @@ spec:
6466
value: {{ template "fluid.helmDriver" . }}
6567
- name: THIN_FUSE_CONFIG_STORAGE
6668
value: {{ .Values.runtime.thin.fuse.configStorage }}
69+
{{- if .Values.runtime.thin.env }}
70+
{{ toYaml .Values.runtime.thin.env | nindent 10 }}
71+
{{- end }}
6772
ports:
6873
- containerPort: 8080
6974
name: metrics

charts/fluid/fluid/templates/controller/vineyardruntime_controller.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ spec:
4747
- --runtime-workers={{ .Values.runtime.vineyard.runtimeWorkers }}
4848
- --kube-api-qps={{ .Values.runtime.vineyard.kubeClientQPS }}
4949
- --kube-api-burst={{ .Values.runtime.vineyard.kubeClientBurst }}
50+
- --workqueue-qps={{ .Values.runtime.vineyard.workQueueQPS }}
51+
- --workqueue-burst={{ .Values.runtime.vineyard.workQueueBurst }}
5052
env:
5153
{{- if .Values.workdir }}
5254
- name: FLUID_WORKDIR
@@ -74,6 +76,9 @@ spec:
7476
{{- end }}
7577
- name: HELM_DRIVER
7678
value: {{ template "fluid.helmDriver" . }}
79+
{{- if .Values.runtime.vineyard.env }}
80+
{{ toYaml .Values.runtime.vineyard.env | nindent 10 }}
81+
{{- end }}
7782
ports:
7883
- containerPort: 8080
7984
name: metrics

charts/fluid/fluid/values.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ dataset:
3939
# limits:
4040
# cpu: 1000m
4141
# memory: 512Mi
42+
runtimeWorkers: 3
43+
kubeClientQPS: 20
44+
kubeClientBurst: 30
45+
workQueueQPS: 10
46+
workQueueBurst: 100
4247
controller:
4348
imagePrefix: *defaultImagePrefix
4449
imageName: dataset-controller
@@ -79,6 +84,7 @@ runtime:
7984
mountRoot: /runtime-mnt
8085
alluxio:
8186
replicas: 1
87+
env: []
8288
tolerations:
8389
- operator: Exists
8490
resources: ~
@@ -92,6 +98,8 @@ runtime:
9298
runtimeWorkers: 3
9399
kubeClientQPS: 20
94100
kubeClientBurst: 30
101+
workQueueQPS: 10
102+
workQueueBurst: 100
95103
portRange: 20000-26000
96104
portAllocatePolicy: random
97105
enabled: false
@@ -114,6 +122,7 @@ runtime:
114122
mountConfigStorage: configmap
115123
jindo:
116124
replicas: 1
125+
env: []
117126
tolerations:
118127
- operator: Exists
119128
resources: ~
@@ -127,6 +136,8 @@ runtime:
127136
runtimeWorkers: 3
128137
kubeClientQPS: 20
129138
kubeClientBurst: 30
139+
workQueueQPS: 10
140+
workQueueBurst: 100
130141
portRange: 18000-19999
131142
portAllocatePolicy: random
132143
enabled: false
@@ -152,6 +163,7 @@ runtime:
152163
imageTag: v0.9.0
153164
goosefs:
154165
replicas: 1
166+
env: []
155167
tolerations:
156168
- operator: Exists
157169
resources: ~
@@ -165,6 +177,8 @@ runtime:
165177
runtimeWorkers: 3
166178
kubeClientQPS: 20
167179
kubeClientBurst: 30
180+
workQueueQPS: 10
181+
workQueueBurst: 100
168182
portRange: 26000-32000
169183
portAllocatePolicy: random
170184
enabled: false
@@ -186,6 +200,7 @@ runtime:
186200
imageTag: v1.2.0
187201
juicefs:
188202
replicas: 1
203+
env: []
189204
tolerations:
190205
- operator: Exists
191206
resources: ~
@@ -200,6 +215,8 @@ runtime:
200215
runtimeWorkers: 3
201216
kubeClientQPS: 20
202217
kubeClientBurst: 30
218+
workQueueQPS: 10
219+
workQueueBurst: 100
203220
controller:
204221
imagePrefix: *defaultImagePrefix
205222
imageName: juicefsruntime-controller
@@ -213,6 +230,7 @@ runtime:
213230
eeimageTag: ee-5.0.21-317356c
214231
thin:
215232
replicas: 1
233+
env: []
216234
tolerations:
217235
- operator: Exists
218236
resources: ~
@@ -227,6 +245,8 @@ runtime:
227245
runtimeWorkers: 3
228246
kubeClientQPS: 20
229247
kubeClientBurst: 30
248+
workQueueQPS: 10
249+
workQueueBurst: 100
230250
controller:
231251
imagePrefix: *defaultImagePrefix
232252
imageName: thinruntime-controller
@@ -235,6 +255,7 @@ runtime:
235255
configStorage: configmap
236256
efc:
237257
replicas: 1
258+
env: []
238259
tolerations:
239260
- operator: Exists
240261
resources: ~
@@ -248,6 +269,8 @@ runtime:
248269
runtimeWorkers: 3
249270
kubeClientQPS: 20
250271
kubeClientBurst: 30
272+
workQueueQPS: 10
273+
workQueueBurst: 100
251274
enabled: false
252275
controller:
253276
imagePrefix: *defaultImagePrefix
@@ -272,6 +295,7 @@ runtime:
272295
imageTag: v1.2.2-19dcee9
273296
vineyard:
274297
replicas: 1
298+
env: []
275299
portRange: 32000-34000
276300
tolerations:
277301
- operator: Exists
@@ -286,6 +310,8 @@ runtime:
286310
runtimeWorkers: 3
287311
kubeClientQPS: 20
288312
kubeClientBurst: 30
313+
workQueueQPS: 10
314+
workQueueBurst: 100
289315
enabled: false
290316
controller:
291317
imagePrefix: *defaultImagePrefix

0 commit comments

Comments
 (0)