Skip to content

Instantly share code, notes, and snippets.

@guillaumedossantos
Created May 27, 2020 15:29
Show Gist options
  • Save guillaumedossantos/7964582c870abfdc253c28e581408ec5 to your computer and use it in GitHub Desktop.
Save guillaumedossantos/7964582c870abfdc253c28e581408ec5 to your computer and use it in GitHub Desktop.
SSO for K8S Dashboard with Azure AD - 6
# ------------------- Oauth2_Proxy Ingress ------------------- #
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: oauth2-proxy
namespace: kube-system
annotations:
ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
tls:
- secretName: tls-forepaas.net
hosts:
- {{ kubedash_FQDN }}
rules:
- host: {{ kubedash_FQDN }}
http:
paths:
- backend:
serviceName: oauth2-proxy
servicePort: 8080
path: /oauth2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment