47 lines
1.2 KiB
YAML
Raw Normal View History

2018-06-21 15:17:33 +02:00
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "webstatus.fullname" . -}}
{{- $ingressPath := include "pathBase" . -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
2018-07-03 19:07:37 +02:00
name: {{ template "webstatus.fullname" . }}
2018-06-21 15:17:33 +02:00
labels:
app: {{ template "webstatus.name" . }}
chart: {{ template "webstatus.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.ingress.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
2019-12-17 18:12:53 +01:00
{{- if and .Values.inf.tls.enabled .Values.inf.tls.issuer }}
cert-manager.io/issuer: {{ .Values.inf.tls.issuer }}
{{- end }}
{{- if .Values.inf.mesh.enabled }}
{{- with .Values.ingress.mesh.annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
{{- end }}
2018-06-21 15:17:33 +02:00
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
2019-12-17 18:12:53 +01:00
{{- range .hosts }}
- {{ . }}
{{- end }}
2018-06-21 15:17:33 +02:00
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
2019-12-17 18:12:53 +01:00
{{- range .Values.ingress.hosts }}
- host: {{ . }}
2018-06-21 15:17:33 +02:00
http:
paths:
- path: {{ $ingressPath }}
backend:
2019-12-17 18:12:53 +01:00
serviceName: {{ $.Values.app.svc.status }}
2018-06-21 15:17:33 +02:00
servicePort: http
2019-12-17 18:12:53 +01:00
{{- end }}
2018-06-21 15:17:33 +02:00
{{- end }}