Files
helm-mailman3/mailman3/templates/ingress.yaml
2026-03-31 18:56:01 -04:00

30 lines
745 B
YAML

{{- if .Values.ingress.enabled -}}
{{- $fullName := include "mailman3.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "mailman3.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
- hosts:
- {{ .Values.hostname }}
secretName: {{ include "mailman3.fullname" . }}-certificate
{{- end }}
rules:
- host: {{ .Values.hostname | quote }}
http:
paths:
- path: /
backend:
serviceName: {{ include "mailman3.fullname" . }}-web
servicePort: 80
{{- end }}