-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathingress-route.yaml
More file actions
33 lines (33 loc) · 888 Bytes
/
ingress-route.yaml
File metadata and controls
33 lines (33 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{{- $fullname := (include "mailu.fullname" .) }}
{{ if and .Values.ingress.externalIngress .Values.ingress.traefikCRD.enabled }}
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: {{ $fullname }}
{{- if .Values.ingress.annotations }}
annotations:
{{ toYaml .Values.ingress.annotations | indent 4 }}
{{- end }}
labels:
app: {{ $fullname }}
component: admin
spec:
entryPoints:
{{- range .Values.ingress.traefikCRD.entryPoints }}
- "{{.}}"
{{- end }}
tls:
secretName: {{ $fullname }}-certificates
routes:
- kind: Rule
match: >-
{{- range $index, $hostname := .Values.hostnames }}
{{ if $index }}|| {{ end }}Host(`{{ $hostname }}`)
{{- end }}
{{- if .Values.ingress.traefikCRD.priority }}
priority: {{ .Values.ingress.traefikCRD.priority }}
{{- end }}
services:
- name: {{ $fullname }}-front
port: 80
{{ end }}