Fix ing, deployment

This commit is contained in:
Lars
2023-09-13 13:43:29 +02:00
parent a5d7592dc7
commit 9793780639
4 changed files with 11 additions and 6 deletions

View File

@@ -9,7 +9,7 @@ metadata:
{{- include "..labels" . | nindent 4 }}
spec:
ingressClassName: nginx
{{- if and .Values.site.certificate.certManager .Values.site.certificate.importCert }}
{{- if or .Values.site.certificate.certManager .Values.site.certificate.importCert }}
tls:
- secretName: {{ include "..fullname" . }}-cert-secret
hosts: {{ include "..domains" . | nindent 6 }}
@@ -20,6 +20,7 @@ spec:
{{- end }}
rules:
{{- range include "..domains" . | split "\n" }}
{{- if ne . "" }}
- host: {{ . | replace "- " ""}}
http:
paths:
@@ -30,4 +31,5 @@ spec:
name: {{ include "..fullname" $ }}
port:
number: 80
{{- end }}
{{- end }}