By Tom Svestka
It’s easy to deploy a set of docker containers to DigitalOcean Kubernetes. It’s fairly easy to add an NGINX Ingress load balancer to make it visible to the outside world.
It’s not that easy at all to configure HTTPS certificates (kubectl, helm, lot of YAML files) and domains and making sure that the certificates get created - a lot of hassle.
I would gladly pay for a “managed” load balancer that would be just as easy to set up as in case of a DigitalOcean App or a Droplet:
In addition to the simplicity I also get CloudFlare’s security and CDN.
Is there anything similar to that available to Kubernetes on DigitalOcean?
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!
Accepted Answer
Hi there,
I think that this should be doable with the DigitalOcean managed Load balancers, according to the documentation here. You’ll have to create the SSL certificate or upload it first as per the instructions here:
https://docs.digitalocean.com/products/networking/load-balancers/how-to/ssl-termination/
Then you can reference the certificate’s ID in the load balancer’s configuration file.
The example below creates a load balancer using an SSL certificate:
---
kind: Service
apiVersion: v1
metadata:
name: https-with-cert
annotations:
service.beta.kubernetes.io/do-loadbalancer-protocol: "https"
service.beta.kubernetes.io/do-loadbalancer-certificate-id: "your-certificate-id"
spec:
type: LoadBalancer
selector:
app: nginx-example
ports:
- name: https
protocol: TCP
port: 443
targetPort: 80
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.