From c1c8b9363216cd8621a4a69ea2da950b28127fd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Mon, 31 Mar 2025 01:09:51 +0200 Subject: [PATCH] update oauth2 proxy --- .../oauth2-proxy-longhorn-ingress.yaml | 30 ++++++++++++------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/deploy/longhorn/oauth2-proxy-longhorn-ingress.yaml b/deploy/longhorn/oauth2-proxy-longhorn-ingress.yaml index fe50215..c7b180c 100644 --- a/deploy/longhorn/oauth2-proxy-longhorn-ingress.yaml +++ b/deploy/longhorn/oauth2-proxy-longhorn-ingress.yaml @@ -1,17 +1,25 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: oauth2-proxy-longhorn-ingress + name: longhorn-ingress namespace: longhorn-system + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-prod" + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" spec: + ingressClassName: nginx + tls: + - hosts: + - longhorn.prod.panic.haus + secretName: longhorn-tls rules: - - host: longhorn.prod.panic.haus - http: - paths: - - backend: - service: - name: oauth2-proxy-longhorn-service - port: - number: 4180 - path: /oauth2 - pathType: Prefix \ No newline at end of file + - host: longhorn.prod.panic.haus + http: + paths: + - backend: + service: + name: oauth2-proxy-longhorn-service + port: + number: 4180 + path: /oauth2 + pathType: Prefix \ No newline at end of file