added persistence properties to values and deployment
This commit is contained in:
parent
d9053b656c
commit
5a98e35273
@ -101,3 +101,10 @@ questions:
|
|||||||
required: true
|
required: true
|
||||||
group: "Persistence"
|
group: "Persistence"
|
||||||
label: Persistence
|
label: Persistence
|
||||||
|
show_subquestion_if: true
|
||||||
|
- variable: molgenis.persistence.size
|
||||||
|
default: "10Gi"
|
||||||
|
description: "Size of MOLGENIS filestore (not the database size)"
|
||||||
|
type: string
|
||||||
|
label: Size filestore
|
||||||
|
|
||||||
|
@ -49,10 +49,11 @@ spec:
|
|||||||
value: {{ .javaOpts }}
|
value: {{ .javaOpts }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
|
{{- if .persistence.enabled }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: molgenis-nfs
|
- name: molgenis-nfs
|
||||||
mountPath: "/home/molgenis"
|
mountPath: /home/molgenis
|
||||||
restartPolicy: "Never"
|
{{- end }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /
|
path: /
|
||||||
@ -67,10 +68,12 @@ spec:
|
|||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .resources | indent 12 }}
|
{{ toYaml .resources | indent 12 }}
|
||||||
|
{{- if .persistence.enabled }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: molgenis-nfs
|
- name: molgenis-nfs
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: molgenis-nfs-claim
|
claimName: {{ .Values.persistence.name }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
- name: elasticsearch
|
- name: elasticsearch
|
||||||
|
15
molgenis/templates/persistence/molgenisPVC.yaml
Normal file
15
molgenis/templates/persistence/molgenisPVC.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{{- if .Values.molgenis.persistence.enabled }}
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: {{ .Values.molgenis.persistence.name }}
|
||||||
|
annotations:
|
||||||
|
volume.beta.kubernetes.io/storage-class: "nfs-provisioner"
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.molgenis.persistence.size }}
|
||||||
|
{{- end }}
|
@ -1,15 +0,0 @@
|
|||||||
{{- if .Values.molgenis.persistence.enabled -}}
|
|
||||||
apiVersion: extensions/v1beta1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: molgenis-nfs-claim
|
|
||||||
annotations:
|
|
||||||
volume.beta.kubernetes.io/storage-class: "nfs-provisioner"
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 1Gi
|
|
||||||
{{- end }}
|
|
@ -32,13 +32,8 @@ molgenis:
|
|||||||
memory: 1Gi
|
memory: 1Gi
|
||||||
persistence:
|
persistence:
|
||||||
enabled: false
|
enabled: false
|
||||||
name: molgenis-nexus-data
|
name: molgenis-nfs-claim
|
||||||
storageClass: nfs-class
|
|
||||||
size: 30G
|
size: 30G
|
||||||
reclaimPolicy: Retain
|
|
||||||
server: 192.168.64.12
|
|
||||||
accessMode: ReadWriteMany
|
|
||||||
mountPath: /gcc/molgenis/nexus
|
|
||||||
services:
|
services:
|
||||||
opencpu:
|
opencpu:
|
||||||
host: localhost
|
host: localhost
|
||||||
|
Loading…
Reference in New Issue
Block a user