From 652a1e6bbcae91078a53ae10679c003b28fe2ce4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Schir=C3=A9n?= Date: Thu, 26 Sep 2024 20:25:30 +0200 Subject: [PATCH] helm: Add sidebar support with an example. --- kubernetes/chart/zulip/templates/statefulset.yaml | 6 ++++++ kubernetes/chart/zulip/values.yaml | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/kubernetes/chart/zulip/templates/statefulset.yaml b/kubernetes/chart/zulip/templates/statefulset.yaml index 1accf07..dea5164 100644 --- a/kubernetes/chart/zulip/templates/statefulset.yaml +++ b/kubernetes/chart/zulip/templates/statefulset.yaml @@ -36,6 +36,11 @@ spec: securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: + {{- if .Values.sidecars }} + {{- with .Values.sidecars }} + {{- toYaml . | nindent 8 }} + {{- end }} + {{- end }} - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} @@ -82,6 +87,7 @@ spec: successThreshold: {{ .Values.startupProbe.successThreshold }} failureThreshold: {{ .Values.startupProbe.failureThreshold }} {{- end }} + volumes: - name: {{ include "zulip.fullname" . }}-persistent-storage persistentVolumeClaim: diff --git a/kubernetes/chart/zulip/values.yaml b/kubernetes/chart/zulip/values.yaml index bd1390c..585cb81 100644 --- a/kubernetes/chart/zulip/values.yaml +++ b/kubernetes/chart/zulip/values.yaml @@ -179,6 +179,17 @@ postSetup: # #!/bin/bash # echo "This is a script that gets executed in the Zulip container after installation, once migrations are complete" + # -- You can add any sidecar to Zulip, like a minio client to use for + # uploading backups to a bucket, and mounting the volume for Zulip. + # sidecars: + # - image: minio/mc + # name: minio-client + # volumeMounts: + # - name: zulip-data + # mountPath: /data +sidecars: + [] + # -- PostgreSQL settings, see [Requirements](#Requirements). postgresql: primary: