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

21 lines
482 B
YAML
Raw Normal View History

2018-09-11 15:48:56 +02:00
{{- with .Values.molgenis.persistence }}
{{- if .enabled -}}
apiVersion: extensions/v1beta1
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
2018-09-11 15:48:56 +02:00
name: {{ .name }}
2018-09-10 21:53:29 +02:00
annotations:
2018-09-11 15:48:56 +02:00
{{- if .retain }}
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-11 15:48:56 +02:00
storage: {{ .size }}
{{- end }}
{{- end }}