1
0

updated postgres instances and firewall configuration

This commit is contained in:
sido 2018-09-26 16:52:06 +02:00
parent 039c9993f6
commit 6f995f45bd
4 changed files with 13 additions and 16 deletions

View File

@ -42,16 +42,15 @@ questions:
group: "Provisioning" group: "Provisioning"
show_subquestion_if: true show_subquestion_if: true
subquestions: subquestions:
- variable: service.firewall.umcg.enabled - variable: service.firewall.kind
default: false default: "umcg"
description: "Firewall within the UMCG environment" description: "Firewall kind. This can be 'umcg' or 'cluster' environment"
type: boolean type: enum
label: Firewall UMCG enabled required: true
- variable: service.firewall.cluster.enabled options:
default: false - umcg
description: "Firewall within the cluster environment" - cluster
type: boolean label: Firewall kind
label: Firewall cluster enabled
- variable: molgenis.services.opencpu.host - variable: molgenis.services.opencpu.host
label: OpenCPU cluster label: OpenCPU cluster
default: "localhost" default: "localhost"

View File

@ -1,4 +1,4 @@
{{- if .Values.molgenis.services.postgres.embedded -}} {{- if (.Values.molgenis.services.postgres.embedded) and (.Values.persistence.enabled) }}
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1

View File

@ -11,16 +11,15 @@ spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
{{- if .Values.service.firewall.enabled }} {{- if .Values.service.firewall.enabled }}
loadBalancerSourceRanges: loadBalancerSourceRanges:
{{- if .Values.service.firewall.umcg.enabled }} {{- if .Values.service.firewall.kind eq "umcg" }}
{{- range $index, $rule := .Values.service.firewall.umcg.rules }} {{- range $index, $rule := .Values.service.firewall.umcg.rules }}
- {{ $rule }} - {{ $rule }}
{{- end }} {{- end }}
{{- if .Values.service.firewall.cluster.enabled }} {{- else }}
{{- range $index, $rule := .Values.service.firewall.cluster.rules }} {{- range $index, $rule := .Values.service.firewall.cluster.rules }}
- {{ $rule }} - {{ $rule }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}
{{- end }} {{- end }}
ports: ports:
- name: molgenis - name: molgenis

View File

@ -6,12 +6,11 @@ service:
type: LoadBalancer type: LoadBalancer
firewall: firewall:
enabled: false enabled: false
kind: "umcg"
umcg: umcg:
enabled: false
rules: rules:
- 127.0.0.1/32 - 127.0.0.1/32
cluster: cluster:
enabled: false
rules: rules:
- 127.0.0.1/32 - 127.0.0.1/32
port: 8080 port: 8080