What's the best load balancer for a private K8s cluster?
Asked by
CloudySky33
I'm setting up a multi-master Kubernetes cluster on-premises and I'm curious about load balancing. I know major cloud providers like Azure and AWS have their own solutions, but what do you all recommend for an on-premises setup? Should the load balancer run on a separate machine? Would love to hear about your experiences. Thanks!
Answers
Quick question: does the load balancer just redirect requests to the API server on one of the master nodes? Is it really necessary if you only have a single master?
Reply to this answer
I've also used MetalLB in BGP mode, and it definitely does the job. Alternatively, some folks prefer HAProxy for its robust features and flexibility.
Reply to this answer
MetalLB is a popular choice for load balancing in on-prem Kubernetes clusters. It's designed specifically for this scenario, and many users have had success with it.
Reply to this answer
I personally use MetalLB with BGP mode, and it's been working great for managing traffic effectively to my API servers.
Reply to this answer
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions