53 строки
1.4 KiB
YAML
53 строки
1.4 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: kuard-ingress
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/auth-url: "https://$host/easyauth/auth"
|
|
nginx.ingress.kubernetes.io/auth-signin: "https://$host/easyauth/login"
|
|
nginx.ingress.kubernetes.io/auth-response-headers: "x-injected-userinfo,x-injected-name,x-injected-oid,x-injected-preferred-username,x-injected-sub,x-injected-tid,x-injected-email,x-injected-groups,x-injected-scp,x-injected-roles,x-injected-graph"
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
nginx.ingress.kubernetes.io/rewrite-target: /$1
|
|
spec:
|
|
ingressClassName: nginx
|
|
tls:
|
|
- hosts:
|
|
- {{APP_HOSTNAME}}
|
|
secretName: {{TLS_SECRET_NAME}}
|
|
rules:
|
|
- host: {{APP_HOSTNAME}}
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: kuard-pod
|
|
port:
|
|
number: 8080
|
|
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: easyauth-proxy
|
|
annotations:
|
|
kubernetes.io/ingress.class: nginx
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
spec:
|
|
rules:
|
|
- host: {{APP_HOSTNAME}}
|
|
http:
|
|
paths:
|
|
- path: /easyauth
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: easyauth-proxy
|
|
port:
|
|
number: 80
|
|
tls:
|
|
- hosts:
|
|
- {{APP_HOSTNAME}}
|
|
secretName: {{TLS_SECRET_NAME}}
|