Skip to content

Instantly share code, notes, and snippets.

@ntsh999
ntsh999 / example-ing.yml
Created July 24, 2019 17:45
oauth2_proxy implementation on Kubernetes
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/auth-signin: https://example.com/oauth2/start?rd=https://$host$request_uri$is_args$args
nginx.ingress.kubernetes.io/auth-url: http://oauth2-proxy.oauth-proxy.svc.cluster.local:4180/oauth2/auth
spec: