k8s-manifests/spark/overlays/test/spark-ui-proxy-ingress.yml
2024-06-28 15:13:02 +02:00

32 lines
769 B
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
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:
service:
name: spark-ui-proxy
port:
number: 80
tls:
- 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