Add basic auth
This commit is contained in:
parent
544b99a843
commit
a9e3c68d28
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue