TCP service with SSL termination on load balancer

I have a service listening on TCP port (MQTT server) using type=LoadBalancer and externalTrafficPolicy=Local. It works quite well, but I would like to add SSL termination to the load balancer. Unfortunately ' networking.gke.io/managed-certificates ' annotation is for ingress, not service.

Another promising approach is using stand-alone NEGs ( https://cloud.google.com/kubernetes-engine/docs/how-to/standalone-neg ) which would allow me to setup load balancer + SSL separately, then point it to NEG created by kubernetes. The problem here is that I manage infrastructure using terraform and I can't point LB to newly created NEG without knowing its name.

Is writing a controller to create LB and connect it to NEG the best choice here?

Posted Aug 20, 2019, 2:54 PM UTC

10

No comments yet

Nobody commented on this post, or the comments weren't captured.