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 name: spark-ui-proxy-ingress
annotations: annotations:
kubernetes.io/ingress.class: nginx 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: spec:
ingressClassName: nginx ingressClassName: nginx
defaultBackend: defaultBackend:
@ -13,10 +16,8 @@ spec:
port: port:
number: 80 number: 80
tls: tls:
- hosts: - hosts: [spark.drive.test.sunet.se]
- spark.drive.test.sunet.se
secretName: tls-secret secretName: tls-secret
rules: rules:
- host: spark.drive.test.sunet.se - host: spark.drive.test.sunet.se
http: http: