2018-06-25 15:11:29 +02:00
|
|
|
{{- if .Values.ingress.enabled }}
|
|
|
|
{{- range .Values.ingress.hosts }}
|
2018-05-23 21:04:25 +02:00
|
|
|
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 }}
|
2018-05-23 21:04:25 +02:00
|
|
|
spec:
|
|
|
|
rules:
|
2018-06-25 15:11:29 +02:00
|
|
|
- host: {{ .name }}
|
2018-05-30 23:16:22 +02:00
|
|
|
http:
|
|
|
|
paths:
|
2018-06-25 15:11:29 +02:00
|
|
|
- path: {{ default "/" .path }}
|
|
|
|
backend:
|
2018-09-20 16:50:46 +02:00
|
|
|
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 }}
|