Add basic auth

This commit is contained in:
Micke Nordin 2024-06-28 15:13:02 +02:00
parent 544b99a843
commit a9e3c68d28

View file

@ -5,6 +5,9 @@ metadata:
name: spark-ui-proxy-ingress
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: htpasswd
nginx.ingress.kubernetes.io/auth-realm: Enter your credentials
spec:
ingressClassName: nginx
defaultBackend:
@ -13,10 +16,8 @@ spec:
port:
number: 80
tls:
- hosts:
- spark.drive.test.sunet.se
- hosts: [spark.drive.test.sunet.se]
secretName: tls-secret
rules:
- host: spark.drive.test.sunet.se
http: