Is it Necessary to Use HTTPS for My Internal Load Balancer Setup?

April 20, 2025 4 answers
Asked by Wisp
I'm working with a Kubernetes cluster that's exposed through an internal load balancer with a private IP. I've deployed a Gateway application (like NGINX or Spring Cloud Gateway) to help route traffic to the cluster, which is currently running on HTTP. I'm considering switching to HTTPS using a self-signed certificate. My main questions are: 1) Should I just enable HTTPS on the Gateway (the front end) or should I also implement it between the Gateway and my cluster (the back end)? 2) Given that my load balancer's IP is private, will I need to create a fictitious DNS pointing to that IP to make my HTTPS certificate work, or is that unnecessary?

Answers

Womble
Encryption within your cluster is important if you're dealing with sensitive data. Using mTLS with a service mesh is a solid approach rather than manually handling HTTPS everywhere. Just keep in mind that a certificate requires a domain, so you'll need some form of DNS.
Reply to this answer
mosaic.tile.layout
Itโ€™s a good practice to use HTTPS on the Gateway, especially if youโ€™re exposing services publicly. If your internal network is secure, you might not need that level of encryption internally, but it doesnโ€™t hurt. You can skip the fictitious DNS as long as you handle the certificate directly on the Gateway.
Reply to this answer
~first impressions
Definitely look into using DNS thatโ€™s mapped to your internal setup. You can set up Cert Manager with a DNS challenge which is super effective for internal IPs.
Reply to this answer
climbing wall novice
Iโ€™d recommend enabling HTTPS on the Gateway. For proper management of certificates, consider buying a domain and setting up Cert Manager. This solution can auto-renew your certificates, making things easier for you.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions