mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-11 14:13:49 +02:00
fix: set static http route for /api/feed only
This commit is contained in:
23
charts/templates/ingress-https-redirect.yaml
Normal file
23
charts/templates/ingress-https-redirect.yaml
Normal 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 }}
|
23
charts/templates/ingress-https.yaml
Normal file
23
charts/templates/ingress-https.yaml
Normal 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 }}
|
Reference in New Issue
Block a user