secure way to connect kubectl to digital ocean managed kubernetes

Posted July 31, 2021 161 views
SecurityKubernetesDigitalOcean 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?

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.

Submit an Answer
1 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.