updated configuration for cluster deployment

This commit is contained in:
sido 2018-11-06 09:26:27 +01:00
parent 2eeb2413db
commit 63bedcea84
4 changed files with 5 additions and 27 deletions

View File

@ -74,7 +74,7 @@ spec:
volumes:
- name: opal-nfs
persistentVolumeClaim:
claimName: {{ .Values.opal.persistence.claim }}
claimName: {{ .Release.Name }}-{{ .Values.opal.persistence.claim }}
{{- end }}
{{- with .Values.nodeSelector }}

View File

@ -3,7 +3,7 @@ apiVersion: extensions/v1beta1
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Values.opal.persistence.claim }}
name: {{ .Release.Name }}-{{ .Values.opal.persistence.claim }}
annotations:
{{- if .Values.persistence.retain }}
volume.beta.kubernetes.io/storage-class: "nfs-provisioner-retain"

View File

@ -1,19 +0,0 @@
{{- if .Values.persistence.enabled }}
apiVersion: extensions/v1beta1
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ .Values.mysql.persistence.claim }}
annotations:
{{- if .Values.persistence.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.mysql.persistence.size }}
{{- end }}

View File

@ -3,7 +3,7 @@
replicaCount: 1
service:
type: LoadBalancer
type: ClusterIP
port: 8080
ingress:
@ -11,7 +11,7 @@ ingress:
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0"
hosts:
- name: opal.dev.molgenis.org
- opal.dev.molgenis.org
path: /
tls: []
@ -36,6 +36,7 @@ opal:
adminPassword:
persistence:
claim: pvc-opal
size: 10Gi
services:
rserver:
host: localhost
@ -48,10 +49,6 @@ rserver:
tag: latest
pullPolicy: IfNotPresent
mysql:
persistence:
size: 10Gi
persistence:
enabled: true
retain: false