databricks / click

The "Command Line Interactive Controller for Kubernetes"
Apache License 2.0
1.49k stars 84 forks source link

Couldn't get an authentication token. #72

Open ImMiracleMax opened 6 years ago

ImMiracleMax commented 6 years ago

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 commented 6 years ago

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`