Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticate GKE access before executing command #36

Closed
dtan4 opened this issue Apr 18, 2018 · 0 comments
Closed

Authenticate GKE access before executing command #36

dtan4 opened this issue Apr 18, 2018 · 0 comments

Comments

@dtan4
Copy link
Owner

dtan4 commented Apr 18, 2018

WHAT

Authenticate GKE access before executing k8stail command by kicking GKE credential helper.

WHY

After switching current context to GKE cluster, k8stail fails with the error below.

$ k8stail
Context:   xxxxx
Namespace: default
Labels:
Press Ctrl-C to exit.
----------
Get https://xxxxx/api/v1/watch/namespaces/default/pods: error executing access token command "/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gcloud ": exit status 2

Executing kubectl get po once resolves this. GKE credentials is ephemeral and refreshed periodically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant