ingress-nginx-helm/examples/auth/oauth-external-auth/dashboard-ingress.yaml

46 lines
978 B
YAML
Raw Normal View History

2021-08-21 20:43:04 +00:00
apiVersion: networking.k8s.io/v1
2018-04-27 00:09:55 +00:00
kind: Ingress
metadata:
annotations:
2018-07-05 14:42:36 +00:00
nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
2018-07-28 15:21:37 +00:00
nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
2018-04-27 00:09:55 +00:00
name: external-auth-oauth2
namespace: kube-system
spec:
2021-11-09 15:45:04 +00:00
ingressClassName: nginx
2018-04-27 00:09:55 +00:00
rules:
- host: __INGRESS_HOST__
http:
paths:
2021-11-02 00:13:54 +00:00
- path: /
pathType: Prefix
backend:
service:
name: kubernetes-dashboard
port:
number: 80
2018-04-27 00:09:55 +00:00
---
2021-08-21 20:43:04 +00:00
apiVersion: networking.k8s.io/v1
2018-04-27 00:09:55 +00:00
kind: Ingress
metadata:
name: oauth2-proxy
namespace: kube-system
spec:
2021-11-09 15:45:04 +00:00
ingressClassName: nginx
2018-04-27 00:09:55 +00:00
rules:
- host: __INGRESS_HOST__
http:
paths:
2021-11-02 00:13:54 +00:00
- path: /oauth2
pathType: Prefix
backend:
service:
name: oauth2-proxy
port:
number: 4180
2018-04-27 00:09:55 +00:00
tls:
- hosts:
- __INGRESS_HOST__
secretName: __INGRESS_SECRET__