Skip to content

Instantly share code, notes, and snippets.

@Sushant
Last active December 7, 2017 18:47
Show Gist options
  • Select an option

  • Save Sushant/9c1e680868b44f1639e3e5382f1e60c7 to your computer and use it in GitHub Desktop.

Select an option

Save Sushant/9c1e680868b44f1639e3e5382f1e60c7 to your computer and use it in GitHub Desktop.
Kubeconfig for OIDC
apiVersion: v1
clusters:
- cluster:
insecure-skip-tls-verify: true
server: https://127.0.0.1:6443
name: local-secure
- cluster:
insecure-skip-tls-verify: true
server: http://127.0.0.1:8080
name: local-insecure
contexts:
- context:
cluster: local-secure
namespace: kube-system
user: sushant
name: local-secure
- context:
cluster: local-insecure
namespace: kube-system
name: local-insecure
kind: Config
preferences:
colors: true
users:
- name: sushant
user:
auth-provider:
config:
client-id: <CLIENT_ID>
client-secret: <CLIENT_SECRET>
id-token: <ID_TOKEN>
idp-issuer-url: https://accounts.google.com
refresh-token: <REFRESH_TOKEN>
name: oidc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment