Skip to content

Commit 8f856bf

Browse files
committed
conditionally use dCache embedded zookeeper
1 parent 0ae2966 commit 8f856bf

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

templates/configmap.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,11 @@ data:
199199
chimerashell.db.password = ${chimera.db.password}
200200
chimerashell.db.name = ${chimera.db.name}
201201

202+
{{- if .Values.zookeeper.embedded }}
203+
dcache.zookeeper.connection={{ $.Release.Name }}-door-svc.{{ $.Release.Namespace }}.svc.cluster.local:2181
204+
{{- else }}
202205
dcache.zookeeper.connection={{ $.Values.zookeeper.servers }}
206+
{{- end}}
203207

204208
{{- if .Values.kafka.enabled}}
205209
dcache.kafka.bootstrap-servers={{ $.Values.kafka.bootstrap_servers }}

templates/door-svc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ spec:
8383
targetPort: 3881
8484
{{- end }}
8585

86+
{{ if .Values.zookeeper.embedded }}
87+
- name: zookeeper
88+
port: 2181
89+
targetPort: 2181
90+
{{- end }}
91+
92+
8693
- name: cell-tunnel
8794
port: {{ $.Values.cell.tunnel }}
8895
targetPort: 11111

values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ cell:
5757
# Zookeeper to use
5858
#
5959
zookeeper:
60+
# whether to use dCache-embedded zookeeper
61+
embedded: false
62+
# connection string to external zookeeper servers
6063
servers: cells-zookeeper:2181
6164

6265
kafka:

0 commit comments

Comments
 (0)