From 5e5ca2149a567e58bb2090a1f69f8fbce108bb61 Mon Sep 17 00:00:00 2001 From: carolineBda Date: Thu, 23 Dec 2021 10:53:19 +0100 Subject: [PATCH] Add file to redirect www to monpsy.sante --- .socialgouv/redirect.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .socialgouv/redirect.yaml diff --git a/.socialgouv/redirect.yaml b/.socialgouv/redirect.yaml new file mode 100644 index 00000000..296d330d --- /dev/null +++ b/.socialgouv/redirect.yaml @@ -0,0 +1,20 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + kubernetes.io/ingress.class: nginx + nginx.ingress.kubernetes.io/permanent-redirect: https://monpsy.sante.gouv.fr$request_uri + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: "true" + labels: + app.kubernetes.io/component: redirect + app.kubernetes.io/name: www + name: monpsy-redirect + namespace: monpsy +spec: + rules: + - host: www.monpsy.sante.gouv.fr + tls: + - hosts: + - www.monpsy.sante.gouv.fr + secretName: monpsy-redirect