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

37 lines
860 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-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:40:56 +02:00
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 20:17:44 +02:00
serviceName: httpd
2018-06-25 20:15:25 +02:00
servicePort: 80
2018-06-25 15:11:29 +02:00
{{- if .tls }}
tls:
- hosts:
- {{ .name }}
secretName: {{ .tlsSecret }}
{{- end }}
---
{{- end }}
{{- end }}