helm: Add sidebar support with an example.

This commit is contained in:
Mikael Schirén
2024-09-26 20:25:30 +02:00
committed by GitHub
parent 3a0e5dea18
commit 652a1e6bbc
2 changed files with 17 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ spec:
securityContext: securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
containers: containers:
{{- if .Values.sidecars }}
{{- with .Values.sidecars }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 12 }} {{- toYaml .Values.securityContext | nindent 12 }}
@@ -82,6 +87,7 @@ spec:
successThreshold: {{ .Values.startupProbe.successThreshold }} successThreshold: {{ .Values.startupProbe.successThreshold }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }} failureThreshold: {{ .Values.startupProbe.failureThreshold }}
{{- end }} {{- end }}
volumes: volumes:
- name: {{ include "zulip.fullname" . }}-persistent-storage - name: {{ include "zulip.fullname" . }}-persistent-storage
persistentVolumeClaim: persistentVolumeClaim:

View File

@@ -179,6 +179,17 @@ postSetup:
# #!/bin/bash # #!/bin/bash
# echo "This is a script that gets executed in the Zulip container after installation, once migrations are complete" # 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 settings, see [Requirements](#Requirements).
postgresql: postgresql:
primary: primary: