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,18 +16,16 @@ 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:
paths:
- path: /
pathType: Prefix
backend:
service:
name: spark-ui-proxy
port:
number: 80
- host: spark.drive.test.sunet.se
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: spark-ui-proxy
port:
number: 80