2018-09-26 17:27:45 +02:00
|
|
|
{{- if .Values.molgenis.services.postgres.embedded and .Values.persistence.enabled }}
|
2018-09-26 16:04:22 +02:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
|
|
|
name: {{ .Values.postgres.persistence.claim }}
|
|
|
|
annotations:
|
|
|
|
{{- if .Values.persistence.retain }}
|
|
|
|
volume.beta.kubernetes.io/storage-class: "nfs-provisioner-retain"
|
|
|
|
{{- else }}
|
|
|
|
volume.beta.kubernetes.io/storage-class: "nfs-provisioner"
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: {{ .Values.postgres.persistence.size }}
|
|
|
|
{{- end }}
|