added retainability for pv's
This commit is contained in:
parent
04bd9cd653
commit
e5cbcdf933
|
@ -110,4 +110,9 @@ questions:
|
|||
default: "30Gi"
|
||||
description: "Size of MOLGENIS filestore (not the database size)"
|
||||
type: string
|
||||
label: Size filestore
|
||||
label: Size filestore
|
||||
- variable: molgenis.persistence.retain
|
||||
default: false
|
||||
description: "Do you want to retain the persistence volume"
|
||||
type: boolean
|
||||
label: Retain volume
|
|
@ -1,15 +1,21 @@
|
|||
{{- if .Values.molgenis.persistence.enabled -}}
|
||||
{{- with .Values.molgenis.persistence }}
|
||||
{{- if .enabled -}}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: {{ .Values.molgenis.persistence.name }}
|
||||
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: {{ .Values.molgenis.persistence.size }}
|
||||
storage: {{ .size }}
|
||||
{{- end }}
|
||||
{{- end }}
|
|
@ -33,6 +33,7 @@ molgenis:
|
|||
memory: 1250Mi
|
||||
persistence:
|
||||
enabled: false
|
||||
retain: false
|
||||
name: molgenis-nfs-claim
|
||||
size: 30Gi
|
||||
services:
|
||||
|
|
Loading…
Reference in New Issue