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

September 13, 2017 2.2k views
Kubernetes Load Balancing Clustering Nginx

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

1 Answer

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/

Have another answer? Share your knowledge.