Question

How to configure SSL Certificate on K8s Cluster with 10 Nginx Pods and Load-Balancer?

I am working on a project to build a kubernetes Cluster with 6 droplets including three K8s nodes and three Mongodb nodes. The frontend service has 10 Nginx Pods running on two nodes and a load-balancer forwards traffic to Nginx Service’s NodePort. So far, everything works fine. Now I am trying to add the support of HTTPS traffic with SSL Certificate. My questions are how do I configure Commercial SSL Certificate on the frontend? Should I set up the SSL on load-balancer or 10 Nginx pods ? Which one is the better choice and how to do it ? Should I buy Commercial SSL Certificate or use free Let’s Encrypt ?

Any suggestions or help would be gratefully appreciated.

Thanks in advance, Michael


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hey Michael!

Terribly sorry for the embarrassingly long delay in getting a respond to you on this question. We have released our DOK8s Managed Kubernetes product which has support for our DO load balancers built in. Using the product you can easily configure SSL for your load balancer. You can find more information in our official docs!

https://www.digitalocean.com/docs/kubernetes/overview/