External Load Balancer for Kubernetes cluster External Load Balancer for Kubernetes cluster kubernetes kubernetes

External Load Balancer for Kubernetes cluster


I think a nginx IngressController can work better in this case.You only have to set the backend service and the hostname inside the ingress definition.

Take a look here:https://github.com/kubernetes/contrib/tree/master/ingress/controllers/nginx


(2) This is not ideal if your cluster is very dynamic without predictable node names. This is also very very anti-pattern to immutable infrastructure- if that is something you are working towards.

(1) This will work, but relies on kube proxy for proxying to another node- which is not super intelligent right now, you are essentially going from haproxy (powerful proxy) to kube proxy (relatively dumb proxy) to pod- adding an extra jump and some (although minimal) latency

Your original plan is probably the best, and is essentially the same as an ingress controller.