Skip to content

Commit bf76ea5

Browse files
committed
chore(charts): celery process isolation
1 parent 5f8fd3c commit bf76ea5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

charts/helmbroker/templates/helmbroker-celery-deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ spec:
3737
- http://drycc-helmbroker
3838
{{- include "helmbroker.envs" . | indent 10 }}
3939
containers:
40-
- name: drycc-helmbroker-celery
40+
{{- range $key := (list "low" "middle" "high") }}
41+
- name: drycc-helmbroker-celery-{{$key}}
4142
image: {{$.Values.imageRegistry}}/{{$.Values.imageOrg}}/helmbroker:{{$.Values.imageTag}}
4243
imagePullPolicy: {{$.Values.imagePullPolicy}}
4344
{{- if $.Values.diagnosticMode.enabled }}
@@ -47,12 +48,13 @@ spec:
4748
args:
4849
- /bin/bash
4950
- -c
50-
- celery --app helmbroker worker --queues helmbroker.low,helmbroker.middle,helmbroker.high --autoscale=32,1 --loglevel=WARNING
51+
- celery --app helmbroker worker -n {{uuidv4}}@%h --queues helmbroker.{{$key}} --autoscale=32,1 --loglevel=WARNING
5152
{{- end }}
52-
{{- with index .Values "celery" "resources" }}
53+
{{- with index $.Values "celery" "resources" }}
5354
resources:
5455
{{- toYaml . | nindent 10 }}
5556
{{- end }}
5657
{{- include "helmbroker.envs" $ | indent 8 }}
5758
{{- include "helmbroker.volumeMounts" $ | indent 8 }}
59+
{{- end }}
5860
{{- include "helmbroker.volumes" . | indent 6 }}

0 commit comments

Comments
 (0)