Skip to content

Commit 652a1e6

Browse files
authored
helm: Add sidebar support with an example.
1 parent 3a0e5de commit 652a1e6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

kubernetes/chart/zulip/templates/statefulset.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ spec:
3636
securityContext:
3737
{{- toYaml .Values.podSecurityContext | nindent 8 }}
3838
containers:
39+
{{- if .Values.sidecars }}
40+
{{- with .Values.sidecars }}
41+
{{- toYaml . | nindent 8 }}
42+
{{- end }}
43+
{{- end }}
3944
- name: {{ .Chart.Name }}
4045
securityContext:
4146
{{- toYaml .Values.securityContext | nindent 12 }}
@@ -82,6 +87,7 @@ spec:
8287
successThreshold: {{ .Values.startupProbe.successThreshold }}
8388
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
8489
{{- end }}
90+
8591
volumes:
8692
- name: {{ include "zulip.fullname" . }}-persistent-storage
8793
persistentVolumeClaim:

kubernetes/chart/zulip/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,17 @@ postSetup:
179179
# #!/bin/bash
180180
# echo "This is a script that gets executed in the Zulip container after installation, once migrations are complete"
181181

182+
# -- You can add any sidecar to Zulip, like a minio client to use for
183+
# uploading backups to a bucket, and mounting the volume for Zulip.
184+
# sidecars:
185+
# - image: minio/mc
186+
# name: minio-client
187+
# volumeMounts:
188+
# - name: zulip-data
189+
# mountPath: /data
190+
sidecars:
191+
[]
192+
182193
# -- PostgreSQL settings, see [Requirements](#Requirements).
183194
postgresql:
184195
primary:

0 commit comments

Comments
 (0)