Question

secure way to connect kubectl to digital ocean managed kubernetes

Iam using digital ocean’s manged kubernetes. my questions is do we have to configure our own ssl connection from my pc to cluster on digital ocean or the default admin user created by digital ocean and the config file download from the website configure ssl / encrypted connection between my pc and cluster while using kubectl?


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Accepted Answer

kubectl uses https for its communications. You can verify this by running kubectl in verbose mode. For example: kubectl get pods --v=6

Of course when you download the config file from digital ocean’s dashboard, that’s through an https connection, and if you use doctl it’s almost certainly the same.

If you have concerns about having admin power, you can also create a user with more limited access and use that user’s token instead of the admin token.

Bobby Iliev
Site Moderator
Site Moderator badge
July 8, 2024

Hi there,

A quick update here in case that anyone comes across this in the future.

DigitalOcean has just announced that Control plane firewalls are now available in Early Availability.

The feature improves security and traffic for your cluster. Once enabled, only configured IP addresses, cluster worker nodes and workloads, and internal systems that manage the cluster (such as cluster upgrades) can access the control plane.

Existing open connections continue to work until they terminate. However, for WATCH requests, the API server enforces a maximum of 30 minutes for terminating the open connection.

For more information, see How to Add a Control Plane Firewall.

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

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.