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

kubeconfig fails #76

Closed
daniel-sherwood opened this issue Mar 26, 2018 · 4 comments
Closed

kubeconfig fails #76

daniel-sherwood opened this issue Mar 26, 2018 · 4 comments
Assignees
Labels

Comments

@daniel-sherwood
Copy link

Hi

I have kubernetes-1.0.2-1.9.6 installed on a DC/OS 0.11 cluster. The kubconfig command fails as follows...

[p3061@cuckoo-accessvm-p3061 ~]$ dcos kubernetes kubeconfig
failed to retrieve 'cluster.name'

Cheers

Daniel Sherwood

@pires
Copy link
Contributor

pires commented Mar 26, 2018

@hectorj2f please help here.

@hectorj2f
Copy link

@daniel-sherwood This could happen when there isn't a cluster section in the dcos.toml configuration file of your cluster. Could you run dcos auth login to your cluster ? We need to be sure you're logged in the right cluster.
Could you also print the content of your dcos.toml file e.g ~/.dcos/clusters/CLUSTER_ID/dcos.toml ?

@pires pires added the question label Mar 26, 2018
@daniel-sherwood
Copy link
Author

Tried that - still not working.

[p3061@cuckoo-accessvm-p3061 ~]$ dcos auth login
If your browser didn't open, please go to the following link:

    http://192.168.208.100/login?redirect_uri=urn:ietf:wg:oauth:2.0:oob

Enter OpenID Connect ID Token: <TOKEN>
Login successful!
[p3061@cuckoo-accessvm-p3061 ~]$ dcos kubernetes kubeconfig
failed to retrieve 'cluster.name'
[p3061@cuckoo-accessvm-p3061 ~]$ cat ~/.dcos/clusters/e5bc27d5-da21-46ce-9f56-a45320ff2361/dcos.toml
[core]
dcos_url = "http://192.168.208.100"
dcos_acs_token = "<TOKEN>"
[p3061@cuckoo-accessvm-p3061 ~]$

@daniel-sherwood
Copy link
Author

Remved ~/.dcos/ and re-ran 'dcos cluster setup' and it is now working.

Thanks.

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

No branches or pull requests

3 participants