26 lines
865 B
YAML
26 lines
865 B
YAML
# oauth2-proxy routes (/oauth2/*) on the same host as Kibana.
|
|
# No auth_request on this Ingress — otherwise the /oauth2/start and /oauth2/callback
|
|
# paths would loop trying to authenticate themselves.
|
|
# Ref: https://medium.com/@hrlimaye/google-oauth2-with-kubernetes-nginx-controller-d7a0a3e62e1b
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: oauth2-proxy-kibana-nginx
|
|
namespace: eck-observability-prd
|
|
annotations:
|
|
kubernetes.io/ingress.class: nginx-internal
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
spec:
|
|
ingressClassName: nginx-internal
|
|
rules:
|
|
- host: kibana-prd-observability.prd.meesho.int
|
|
http:
|
|
paths:
|
|
- path: /oauth2
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: oauth2-proxy-kibana
|
|
port:
|
|
number: 4180
|