adding ingress and certs
Some checks failed
Django Helm GitOps Deploy / build-and-test (push) Successful in 34s
Django Helm GitOps Deploy / deploy-prod (push) Failing after 3m7s

This commit is contained in:
root 2026-11-13 16:52:28 +01:00
parent 42fe5cb375
commit b9dd05ffb2
3 changed files with 16 additions and 0 deletions

View file

@ -10,6 +10,14 @@ spec:
{{- with .Values.ingress.className }} {{- with .Values.ingress.className }}
ingressClassName: {{ . | quote }} ingressClassName: {{ . | quote }}
{{- end }} {{- end }}
{{- if .Values.ingress.tls.enabled }}
tls:
- secretName: {{ .Values.ingress.tls.secretName | quote }}
hosts:
{{- range .Values.ingress.hosts }}
- {{ . | quote }}
{{- end }}
{{- end }}
rules: rules:
{{- range .Values.ingress.hosts }} {{- range .Values.ingress.hosts }}
- host: {{ . | quote }} - host: {{ . | quote }}

View file

@ -8,3 +8,8 @@ ingress:
className: traefik className: traefik
annotations: annotations:
kubernetes.io/ingress.class: null # alte Annotation entfernen kubernetes.io/ingress.class: null # alte Annotation entfernen
# cert-manager holt das Zertifikat für alle hosts automatisch (HTTP-01 über Port 80)
cert-manager.io/cluster-issuer: letsencrypt-prod
tls:
enabled: true
secretName: boday-it-tls

View file

@ -28,3 +28,6 @@ ingress:
hosts: hosts:
- boday-it.ch - boday-it.ch
- www.boday-it.ch - www.boday-it.ch
tls:
enabled: false
secretName: boday-it-tls