From b334b836a80c7196440dfe1b1653bbb0e6977254 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Sat, 14 Dec 2024 19:34:32 +0100 Subject: [PATCH] Update longhorn ingress - add basic auth --- longhorn/ingress.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/longhorn/ingress.yaml b/longhorn/ingress.yaml index e79612d..2cb5813 100644 --- a/longhorn/ingress.yaml +++ b/longhorn/ingress.yaml @@ -7,6 +7,10 @@ metadata: cert-manager.io/cluster-issuer: prod-cluster-issuer nginx.ingress.kubernetes.io/ssl-passthrough: "false" nginx.ingress.kubernetes.io/enable-cors: "true" + # name of the secret that contains the user/password definitions + nginx.ingress.kubernetes.io/auth-secret: longhorn-basic-auth + # message to display with an appropriate context why the authentication is required + nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required ' # nginx.ingress.kubernetes.io/cors-allow-origin: "http://localhost:3000/" # nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS, DELETE" # If you encounter a redirect loop or are getting a 307 response code