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

36 lines
869 B
YAML
Raw Normal View History

2018-06-22 22:11:11 +02:00
{{- if .Values.ingress.enabled }}
{{- range .Values.ingress.hosts }}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
2018-06-22 22:11:11 +02:00
name: "{{ $.Release.Name }}-ingress"
labels:
2018-06-22 22:17:08 +02:00
app: {{ template "httpd.fullname" $ }}
2018-06-22 22:11:11 +02:00
chart: "{{ $.Chart.Name }}-{{ $.Chart.Version }}"
release: "{{ $.Release.Name }}"
heritage: "{{ $.Release.Service }}"
annotations:
2018-06-22 22:11:11 +02:00
{{- if .tls }}
ingress.kubernetes.io/secure-backends: "true"
{{- end }}
{{- range $key, $value := .annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
2018-06-22 22:11:11 +02:00
rules:
- host: {{ .name }}
http:
paths:
- path: {{ default "/" .path }}
backend:
2018-06-22 22:17:08 +02:00
serviceName: {{ template "httpd.fullname" $ }}
2018-06-22 22:11:11 +02:00
servicePort: 80
{{- if .tls }}
tls:
2018-06-22 22:11:11 +02:00
- hosts:
- {{ .name }}
secretName: {{ .tlsSecret }}
{{- end }}
2018-06-22 22:11:11 +02:00
---
{{- end }}
2018-06-22 22:11:11 +02:00
{{- end }}