From 0ea2161dd8f468826e86b2f76fb3d3009e9657da Mon Sep 17 00:00:00 2001 From: CJ_Clippy Date: Sat, 29 Jun 2024 18:04:25 -0800 Subject: [PATCH] add https redirect --- charts/fp/Chart.yaml | 2 +- charts/fp/templates/echo.yaml | 3 +++ charts/fp/templates/traefik.yaml | 11 +++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 charts/fp/templates/traefik.yaml diff --git a/charts/fp/Chart.yaml b/charts/fp/Chart.yaml index 4e8645f..6f19a55 100644 --- a/charts/fp/Chart.yaml +++ b/charts/fp/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 name: fp description: The Galaxy's Best VTuber Hentai Site -version: 0.0.35 +version: 0.0.36 keywords: - fp - futureporn diff --git a/charts/fp/templates/echo.yaml b/charts/fp/templates/echo.yaml index 565cc24..91cb1b0 100644 --- a/charts/fp/templates/echo.yaml +++ b/charts/fp/templates/echo.yaml @@ -1,3 +1,5 @@ + +--- apiVersion: apps/v1 kind: Deployment metadata: @@ -52,6 +54,7 @@ metadata: traefik.ingress.kubernetes.io/router.entrypoints: websecure traefik.ingress.kubernetes.io/router.tls: "true" cert-manager.io/cluster-issuer: "{{ .Values.certManager.issuer }}" + traefik.ingress.kubernetes.io/router.middlewares: redirect spec: ingressClassName: traefik rules: diff --git a/charts/fp/templates/traefik.yaml b/charts/fp/templates/traefik.yaml new file mode 100644 index 0000000..4cab27f --- /dev/null +++ b/charts/fp/templates/traefik.yaml @@ -0,0 +1,11 @@ +--- +apiVersion: traefik.containo.us/v1alpha1 +kind: Middleware +metadata: + name: redirect + namespace: futureporn + +spec: + redirectScheme: + scheme: https + permanent: true