-
Notifications
You must be signed in to change notification settings - Fork 147
Expand file tree
/
Copy pathingress.yaml
More file actions
39 lines (38 loc) · 996 Bytes
/
ingress.yaml
File metadata and controls
39 lines (38 loc) · 996 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
34
35
36
37
38
39
# This file is derived from https://github.com/Mailu/Mailu/blob/master/docs/kubernetes/mailu/admin-ingress.yaml
{{- $fullname := (include "mailu.fullname" .) }}
{{ if and .Values.ingress.externalIngress (not .Values.ingress.traefikCRD.enabled) }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullname }}-ingress
{{- if .Values.ingress.annotations }}
annotations:
{{ toYaml .Values.ingress.annotations | indent 4 }}
{{- end }}
labels:
app: {{ $fullname }}
component: admin
spec:
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}
{{- end }}
tls:
- secretName: {{ $fullname }}-certificates
hosts:
{{- range .Values.hostnames }}
- "{{ . }}"
{{- end }}
rules:
{{- range .Values.hostnames }}
- host: "{{ . }}"
http:
paths:
- path: "/"
backend:
service:
name: {{ $fullname }}-front
port:
number: 80
pathType: ImplementationSpecific
{{- end }}
{{ end }}