mirror of
https://github.com/zulip/docker-zulip.git
synced 2025-10-23 04:51:58 +00:00
A helm chart is added for the installation of Zulip into Kubernetes clusters. The chart is based on a version of PR #287, but contains significant changes. The chart depends on Bitnami helm charts for the installation of Memcached, Postgresql, Rabbitmq and Redis. The chart includes the possibility to add `postSetup` scripts which are mounted to `/data/post-setup.d` and executed by the docker-zulip Docker container. More information can be found in the chart's README in kubernetes/chart/zulip/README.md
28 lines
814 B
YAML
28 lines
814 B
YAML
{{- if .Values.zulip.persistence.enabled -}}
|
|
{{- if not .Values.zulip.persistence.existingClaim -}}
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "zulip.fullname" . }}-data
|
|
labels:
|
|
{{- include "zulip.labels" . | nindent 4 }}
|
|
{{- if .Values.zulip.persistence.annotations }}
|
|
annotations:
|
|
{{ toYaml .Values.zulip.persistence.annotations | indent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.zulip.persistence.accessMode | quote }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.zulip.persistence.size | quote }}
|
|
{{- if .Values.zulip.persistence.storageClass }}
|
|
{{- if (eq "-" .Values.zulip.persistence.storageClass) }}
|
|
storageClassName: ""
|
|
{{- else }}
|
|
storageClassName: "{{ .Values.zulip.persistence.storageClass }}"
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end -}}
|
|
{{- end -}}
|