init
This commit is contained in:
27
k8s/ingress.yaml
Normal file
27
k8s/ingress.yaml
Normal file
@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user