52 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2018-06-21 15:17:33 +02:00
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "webstatus.fullname" . -}}
{{- $ingressPath := include "pathBase" . -}}
{{- $serviceName := $.Values.app.svc.status -}}
apiVersion: networking.k8s.io/v1
2018-06-21 15:17:33 +02:00
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 }}
pathType: Prefix
2018-06-21 15:17:33 +02:00
backend:
service:
name: {{ $serviceName }}
port:
number: 80
2019-12-17 18:12:53 +01:00
{{- end }}
2018-06-21 15:17:33 +02:00
{{- end }}