Hello, everyday a new style execise with digitalocean. I have to say I am already learning the whole kubernetes thing. I would like to attempt this kind of deployment: On a 3 nodes cluster, already payed and on wich I am doing experiments, I would like to run Traefik as load balancer and ssl certificate manager, and behind Traefik I would like to run something, let’s say a Tomcat just for the sake of the example. So far I’m documenting myself with this:
https://doc.traefik.io/traefik/https/acme/
https://doc.traefik.io/traefik/providers/kubernetes-ingress/
https://doc.traefik.io/traefik/getting-started/install-traefik/
I am trying to wrap the things together and use Traefik instead of certificate manager. I could give you all the commands issued so far but my question is a bit more wide. Is it possible to do in digital ocean kubernetes such infrastructure? Kubernetes -> Traefik as proxy and ssl cert manager -> redirecting to Tomcat. Do you suggest some documentation that can help me learn how to deploy that?
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!
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.
Hi there,
I believe that this should be doable. This tutorial here should cover most of this:
Start by deploying Traefik via Helm:
This creates a LoadBalancer Service, which provisions a DigitalOcean Load Balancer to route traffic.
Traefik can directly request and manage Let’s Encrypt certificates. Add these Helm values to enable ACME:
Also, make sure your domain points to the DO Load Balancer’s IP so Let’s Encrypt can validate it.
Define an Ingress rule for your Tomcat service:
This ensures traffic to
app.mydomain.com
is routed to your Tomcat pod with TLS encryption via Let’s Encrypt.If you want Traefik to fully manage TLS, enable passthrough on the DO Load Balancer:
Also, enable PROXY Protocol to retain real IPs:
For a real-world example of DigitalOcean Kubernetes deployment with Ingress and SSL, check out DigitalOcean’s Mastodon on Kubernetes project:
- Bobby