28 lines
789 B
YAML
28 lines
789 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: demo-spa-ingress
|
|
namespace: demo-spa
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/auth-url: "https://demo-spa.127.0.0.1.sslip.io/dex-authenticator/auth"
|
|
nginx.ingress.kubernetes.io/auth-signin: "http://demo-spa.127.0.0.1.sslip.io/dex-authenticator/sign_in"
|
|
nginx.ingress.kubernetes.io/auth-response-headers: "X-Auth-Request-User,X-Auth-Request-Email,X-Auth-Request-Groups"
|
|
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- demo-spa.127.0.0.1.sslip.io
|
|
secretName: demo-spa-tls
|
|
rules:
|
|
- host: demo-spa.127.0.0.1.sslip.io
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: demo-spa-service
|
|
port:
|
|
number: 80
|