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

38 lines
907 B
YAML
Raw Permalink 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-06-25 20:17:44 +02:00
app: httpd
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:
2018-06-25 22:23:49 +02:00
serviceName: httpd
servicePort: 80
2018-06-25 15:11:29 +02:00
{{- if .tls }}
tls:
- hosts:
- {{ .name }}
secretName: {{ .tlsSecret }}
{{- end }}
---
{{- end }}
{{- end }}