Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DazWilkin/080527afcc54553d98b6235bb0e14b29 to your computer and use it in GitHub Desktop.
Save DazWilkin/080527afcc54553d98b6235bb0e14b29 to your computer and use it in GitHub Desktop.
Kubernetes Engine: kubectl config
apiVersion: v1
kind: Config
preferences: {}
clusters:
- cluster:
certificate-authority-data: [[REDACTED]]
server: [[REDACTED]]
name: white
- cluster:
certificate-authority-data: [[REDACTED]]
server: [[REDACTED]]
name: black
contexts:
- context:
cluster: white
user: white
name: white
- context:
cluster: black
user: black
name: black
current-context: white
users:
- name: white
user:
auth-provider:
config:
access-token: [[REDACTED]]
cmd-args: config config-helper --format=json
cmd-path: /.../google-cloud-sdk/bin/gcloud
expiry: 2018-06-09T00:00:00Z
expiry-key: '{.credential.token_expiry}'
token-key: '{.credential.access_token}'
name: gcp
- name: black
user:
auth-provider:
config:
access-token: [[REDACTED]]
cmd-args: config config-helper --format=json
cmd-path: /.../google-cloud-sdk/bin/gcloud
expiry: 2018-06-09T00:00:00Z
expiry-key: '{.credential.token_expiry}'
token-key: '{.credential.access_token}'
name: gcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment