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

38 lines
960 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:
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 }}