1
0
molgenis-ops-docker-helm/molgenis/templates/persistence/molgenisPVC.yaml
2018-09-11 15:48:56 +02:00

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