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

19 lines
525 B
YAML
Raw Normal View History

2018-09-12 08:04:59 +02:00
{{- if .Values.persistence.enabled -}}
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 }}
{{- end }}