20 lines
536 B
YAML
20 lines
536 B
YAML
{{- if .Values.persistence.enabled -}}
|
|
apiVersion: extensions/v1beta1
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ .Values.molgenis.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.molgenis.persistence.size }}
|
|
{{- end }}
|
|
{{- end }} |