fix: set static http route for /api/feed only

This commit is contained in:
Justin Kreller
2025-04-27 21:36:11 +02:00
parent 0b25bc3338
commit 3df233fdb9
3 changed files with 121 additions and 74 deletions

View File

@@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Chart.Name }}-redirect
namespace: {{ .Release.Namespace }}
labels:
{{- include "htwkalender.labels" . | nindent 4 }}
{{- if .Values.ingress.httpsRedirect.annotations }}
annotations:
{{ toYaml .Values.ingress.httpsRedirect.annotations | nindent 4 }}
{{- else }}
annotations: []
{{- end }}
spec:
ingressClassName: "PLACEHOLDER"
tls:
- hosts:
{{- range .Values.ingress.httpsRedirect.hosts }}
- {{ .host | quote }}
{{- end }}
secretName: {{ $.Chart.Name }}-cert
rules:
{{- toYaml .Values.ingress.httpsRedirect.hosts | nindent 4 }}

View File

@@ -0,0 +1,23 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Chart.Name }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "htwkalender.labels" . | nindent 4 }}
{{- if .Values.ingress.https.annotations }}
annotations:
{{ toYaml .Values.ingress.https.annotations | nindent 4 }}
{{- else }}
annotations: []
{{- end }}
spec:
ingressClassName: "PLACEHOLDER"
tls:
- hosts:
{{- range .Values.ingress.https.hosts }}
- {{ .host | quote }}
{{- end }}
secretName: {{ $.Chart.Name }}-cert
rules:
{{- toYaml .Values.ingress.https.hosts | nindent 4 }}