mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-11-22 07:21:20 +00:00
helm: Add sidebar support with an example.
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user