Menu

Kubernetes: Trusted TLS Certificate with a LoadBalancer Service and Ingress
πŸ“°

Kubernetes: Trusted TLS Certificate with a LoadBalancer Service and Ingress

DEV Community: kubernetesΒ·Omar AhmedΒ·10 days ago
#oJaNfXWC
#devtokubernetes#devto#dev#cert#manager
Long article (2009 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Using a LoadBalancer with Ingress in Kubernetes instead of exposing every application through its own LoadBalancer Service gives you centralized traffic management, reduced infrastructure costs, and more control over HTTP/HTTPS routing.

Using LoadBalancer without Ingress, Imagine you have three microservices: User Service , Order Service , Payment Service , so each service has type: LoadBalancer

How it fits together

Browser β†’ cloud LoadBalancer (public IP) β†’ Ingress Controller β†’ Ingress rule (TLS ends here) β†’ app Service (ClusterIP) β†’ Pods

The certificate lives in a Kubernetes Secret , and the Ingress uses it. There are two ways to get a certificate that browsers trust:

Path A: public domain. cert-manager gets a free Let's Encrypt certificate and renews it automatically. Every browser trusts it with no extra setup. Use this if you can.

Path B: internal or private site.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.