Files
wordyne/Chart/templates/ingress.yaml

35 lines
1.1 KiB
YAML
Raw Normal View History

2023-03-19 10:07:25 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ include "..fullname" . }}
2023-03-22 22:57:00 +01:00
annotations:
2023-03-22 23:02:47 +01:00
nginx.ingress.kubernetes.io/proxy-body-size: 512M
nginx.ingress.kubernetes.io/client-max-body-size: 512M
2023-03-19 10:07:25 +00:00
labels:
{{- include "..labels" . | nindent 4 }}
spec:
ingressClassName: nginx
2023-09-13 13:43:29 +02:00
{{- if or .Values.site.certificate.certManager .Values.site.certificate.importCert }}
2023-09-12 16:17:14 +02:00
tls:
2023-03-19 10:07:25 +00:00
- secretName: {{ include "..fullname" . }}-cert-secret
2023-09-12 16:17:14 +02:00
hosts: {{ include "..domains" . | nindent 6 }}
{{- else if .Values.site.certificate.existingCert }}
tls:
- secretName: {{ .Values.site.certificate.existingCertName }}
hosts: {{ include "..domains" . | nindent 6 }}
{{- end }}
2023-03-19 10:07:25 +00:00
rules:
2023-09-12 15:45:08 +02:00
{{- range include "..domains" . | split "\n" }}
2023-09-13 13:43:29 +02:00
{{- if ne . "" }}
2023-09-12 15:45:08 +02:00
- host: {{ . | replace "- " ""}}
2023-03-19 10:07:25 +00:00
http:
paths:
2023-09-12 15:45:08 +02:00
- path: /
pathType: Prefix
backend:
service:
name: {{ include "..fullname" $ }}
port:
number: 80
2023-09-13 13:43:29 +02:00
{{- end }}
2023-06-03 22:01:56 +00:00
{{- end }}