Question

How can I use an access token to connect to DOKS

Posted October 6, 2019 516 views
Kubernetes

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.

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.

×
1 answer

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

Submit an Answer