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: volumes:
- name: opal-nfs - name: opal-nfs
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.opal.persistence.claim }} claimName: {{ .Release.Name }}-{{ .Values.opal.persistence.claim }}
{{- end }} {{- end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}

View File

@ -3,7 +3,7 @@ apiVersion: extensions/v1beta1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: {{ .Values.opal.persistence.claim }} name: {{ .Release.Name }}-{{ .Values.opal.persistence.claim }}
annotations: annotations:
{{- if .Values.persistence.retain }} {{- if .Values.persistence.retain }}
volume.beta.kubernetes.io/storage-class: "nfs-provisioner-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 replicaCount: 1
service: service:
type: LoadBalancer type: ClusterIP
port: 8080 port: 8080
ingress: ingress:
@ -11,7 +11,7 @@ ingress:
annotations: annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "0" nginx.ingress.kubernetes.io/proxy-body-size: "0"
hosts: hosts:
- name: opal.dev.molgenis.org - opal.dev.molgenis.org
path: / path: /
tls: [] tls: []
@ -36,6 +36,7 @@ opal:
adminPassword: adminPassword:
persistence: persistence:
claim: pvc-opal claim: pvc-opal
size: 10Gi
services: services:
rserver: rserver:
host: localhost host: localhost
@ -48,10 +49,6 @@ rserver:
tag: latest tag: latest
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
mysql:
persistence:
size: 10Gi
persistence: persistence:
enabled: true enabled: true
retain: false retain: false