1
0
Fork 0
molgenis-ops-docker-helm/charts/molgenis-nexus/templates/ingress.yaml

38 lines
985 B
YAML
Raw Normal View History

2018-06-25 15:11:29 +02:00
{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.hosts }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
2018-06-25 15:11:29 +02:00
name: "{{ $.Release.Name }}-ingress"
labels:
2018-09-28 08:17:50 +02:00
app: {{ $.Values.nexusProxy.name }}
2018-06-25 15:11:29 +02:00
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
release: "{{ $.Release.Name }}"
heritage: "{{ $.Release.Service }}"
annotations:
2018-06-25 21:59:05 +02:00
kubernetes.io/ingress.class: "nginx"
2018-06-25 21:58:26 +02:00
nginx.ingress.kubernetes.io/proxy-body-size: "0"
2018-06-25 15:11:29 +02:00
{{- if .tls }}
ingress.kubernetes.io/secure-backends: "true"
{{- end }}
{{- range $key, $value := .annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
rules:
2018-06-25 15:11:29 +02:00
- host: {{ .name }}
http:
paths:
2018-06-25 15:11:29 +02:00
- path: {{ default "/" .path }}
backend:
serviceName: {{ $.Values.nexusProxy.name }}
servicePort: {{ $.Values.nexusProxy.port }}
2018-06-25 15:11:29 +02:00
{{- if .tls }}
tls:
- hosts:
- {{ .name }}
secretName: {{ .tlsSecret }}
{{- end }}
---
{{- end }}
{{- end }}