stalwart-mail/templates/traefik.yaml

24 lines
573 B
YAML
Raw Normal View History

2024-06-10 10:08:42 +00:00
{{- if .Values.traefik.enabled }}
{{- range $port, $entryport := .Values.traefik.ports }}
2024-06-10 10:08:42 +00:00
---
apiVersion: traefik.io/v1alpha1
kind: IngressRouteTCP
metadata:
name: {{ include "stalwart-mail.fullname" $ }}-{{ $port }}
spec:
entryPoints:
- {{ $entryport }}
routes:
2024-06-10 13:59:09 +00:00
{{- range $host := $.Values.traefik.hosts }}
- match: HostSNI(`{{ $host }}`)
2024-06-10 10:08:42 +00:00
services:
- name: {{ include "stalwart-mail.fullname" $ }}
port: {{ $port }}
proxyProtocol:
version: 2
{{- end }}
2024-06-10 10:08:42 +00:00
tls:
passthrough: true
{{- end }}
{{- end }}