By anthonybudd
I have just set up a Kubernetes cluster on DigitalOcean. I have followed the suggested tutorial but when I try and run the commands I keep getting prompted for a username and password which I have not been provided with.
I have seen a few posts where people say it will be emailed to me but it’s been well over an hour since the set-up completed and I have still not been emailed with anything (yes, I checked the usual places)
Commands I ran: $> doctl kubernetes cluster kubeconfig save MY-CLUSTER Notice: adding cluster credentials to kubeconfig file found in “/Users/anthonybudd/.kube/config” Notice: setting current-context to do-sfo2-ideea-prod $> kubctl get nodes Please enter Username:
Tutorial https://www.digitalocean.com/docs/kubernetes/how-to/connect-to-cluster/
Any help or insights would be appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
After pulling my hair out for a few hours and seriously questioning why I moved to DO, I’ve got to the bottom of the issue…
Manually downloading the config file and using doctl will retrieve different files. The manually downloaded config file has the auth details and the doctl one doesn’t.
Don’t use. doctl kubernetes cluster kubeconfig save ideea-prod
It’s a bug on your side 👍
This comment has been deleted
I can confirm this is happening with doctl
, but not with the manual download.
Specifically, the doctl
result has:
users:
- name: do-nyc1-cmattoon
user: {}
While the manually downloaded one has:
users:
- name: do-nyc1-cmattoon
user:
client-certificate-data: "..."
client-key-data: "..."
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.