44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
|
{{- if .Values.ingress.enabled }}
|
||
|
{{- range .Values.ingress.hosts }}
|
||
|
apiVersion: extensions/v1beta1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: "{{ $.Release.Name }}-ingress"
|
||
|
labels:
|
||
|
app: {{ $.Values.rstudio.name }}
|
||
|
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
|
||
|
release: "{{ $.Release.Name }}"
|
||
|
heritage: "{{ $.Release.Service }}"
|
||
|
annotations:
|
||
|
{{- if .tls }}
|
||
|
ingress.kubernetes.io/secure-backends: "true"
|
||
|
{{- end }}
|
||
|
{{- range $key, $value := .annotations }}
|
||
|
{{ $key }}: {{ $value | quote }}
|
||
|
{{- end }}
|
||
|
spec:
|
||
|
rules:
|
||
|
{{- if .Values.environment -eq "development" }}
|
||
|
- host: "analysis.dev.molgenis.org"
|
||
|
{{- else if .Values.environment -eq "test" }}
|
||
|
- host: "analysis.test.molgenis.org"
|
||
|
{{- else if .Values.environment -eq "acceptance" }}
|
||
|
- host: "analysis.accept.molgenis.org"
|
||
|
{{- else }}
|
||
|
- host: "analysis.molgenis.org"
|
||
|
{{- end }}
|
||
|
http:
|
||
|
paths:
|
||
|
- path: {{ default "/" .path }}
|
||
|
backend:
|
||
|
serviceName: {{ $.Values.rstudio.service.name }}
|
||
|
servicePort: {{ $.Values.rstudio.service.port }}
|
||
|
{{- if .tls }}
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- {{ .name }}
|
||
|
secretName: {{ .tlsSecret }}
|
||
|
{{- end }}
|
||
|
---
|
||
|
{{- end }}
|
||
|
{{- end }}
|