Files
docker-zulip/kubernetes/chart/zulip/templates/pvc.yaml
Gergo Torcsvari 26c0b812e8 Add helm chart
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
2022-05-10 17:45:49 -07:00

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 -}}