Skip to content

Instantly share code, notes, and snippets.

@Yitaek
Created August 9, 2020 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yitaek/896715f5d8f0576d7c14e5c230897e7a to your computer and use it in GitHub Desktop.
Save Yitaek/896715f5d8f0576d7c14e5c230897e7a to your computer and use it in GitHub Desktop.
authenticate:
idp:
provider: "google"
clientID: "<CLIENT_ID>.apps.googleusercontent.com"
clientSecret: "<CLIENT_SECRET>"
config:
sharedSecret: random-secret
cookieSecret: super-secret
rootDomain: mydomain.example.com
generateTLS: false
insecure: true
policy:
# this route is directly proxied by pomerium & injects the authorization header
- from: https://k8s-dashboard.mydomain.example.com
to: https://kubernetes-dashboard.kubernetes-dashboard
allowed_domains:
- example.com
tls_skip_verify: true # dashboard uses self-signed certificates in its default configuration
set_request_headers:
Authorization: "Bearer <EKS-admin-token>"
ingress:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
secretName: wildcard-cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment