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