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

Couldn't get an authentication token. #72

Open
ImMiracleMax opened this issue Aug 22, 2018 · 1 comment
Open

Couldn't get an authentication token. #72

ImMiracleMax opened this issue Aug 22, 2018 · 1 comment

Comments

@ImMiracleMax
Copy link

ImMiracleMax commented Aug 22, 2018

Hello!

I have a docker container with click, I'm mounting my kube configuration folder ($HOME/.kube/:/root/.kube) but it seems like click cant work with it.

Failed to run update command: No such file or directory (os error 2)
Couldn't get an authentication token. You can try exiting Click and running a kubectl command against the cluster to refresh it. Also please report this error on the Click github page.
Server Error: pods is forbidden: User "system:anonymous" cannot list pods at the cluster scope: Unknown user "system:anonymous"

kubectl commands works as expected.
I'm using GKE and click works on my local environment.

@ImMiracleMax
Copy link
Author

Now I tried with a clean .kube/ folder, logged in with gcloud and a service account inside the container. I get the next error message

Could not open config file at '/root/.kube/click.config': No such file or directory (os error 2). Using default values
Could not load kubernetes config: '/root/.kube/config'. Cannot continue.  Error was: Couldn't read yaml: missing field `config`

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