1
0
Fork 0
molgenis-ops-docker-helm/molgenis/templates/persistence/molgenisPVC.yaml

21 lines
482 B
YAML

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