2018-09-12 08:04:59 +02:00
|
|
|
{{- if .Values.persistence.enabled -}}
|
2018-09-10 21:41:54 +02:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
2018-09-12 08:04:59 +02:00
|
|
|
name: {{ .Values.molgenis.persistence.claim }}
|
2018-09-10 21:53:29 +02:00
|
|
|
annotations:
|
2018-09-12 08:04:59 +02:00
|
|
|
{{- if .Values.persistence.retain }}
|
2018-09-11 15:48:56 +02:00
|
|
|
volume.beta.kubernetes.io/storage-class: "nfs-provisioner-retain"
|
|
|
|
{{- else }}
|
2018-09-10 21:53:29 +02:00
|
|
|
volume.beta.kubernetes.io/storage-class: "nfs-provisioner"
|
2018-09-11 15:48:56 +02:00
|
|
|
{{- end }}
|
2018-09-10 21:49:12 +02:00
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
resources:
|
|
|
|
requests:
|
2018-09-12 08:04:59 +02:00
|
|
|
storage: {{ .Values.molgenis.persistence.size }}
|
2018-09-11 15:48:56 +02:00
|
|
|
{{- end }}
|
2018-09-10 21:41:54 +02:00
|
|
|
{{- end }}
|