Report this

What is the reason for this report?

How can I use an access token to connect to DOKS

Posted on October 6, 2019

I recently read in this article that I can use an access token to connect to the digitalocean Kubernetes but the link provided does not show anything on how to do it. If I can use an access token I would no longer have to download the config file every week which would be nice.



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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there!

You already could use doctl to have your auth certificates auto-managed using the instructions here:

https://www.digitalocean.com/docs/kubernetes/how-to/connect-to-cluster/#generating-a-kubectl-configuration-via-command-line

What was just released recently(https://www.digitalocean.com/docs/kubernetes/how-to/connect-to-cluster/#download-the-configuration-file) is that user that requests a kubeconfig will now have an DO API token created(with latest doctl). This token can now be removed or revoked to help secure cluster access which was not possible to do previously.

Let me know if you have any additional questions.

Regards,

John Kwiatkoski Senior Developer Support Engineer

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.