How to add HAproxy on Kafka broker

11/11/2019

I have Kubernetes setup on 3 nodes. 3 Kafka brokers are running successfully on the cluster. There is a third-party application outside the cluster that is using this Kafka. The third-party application(tool) can only use 1 broker list in its config. The tool is unable to add 3 broker list. All good, but sometimes tool got notleaderforpartitionexception. the tool is not able to switch on another broker.

is it possible to add a proxy layer in Kubernetes which can give HA to the Kafka cluster? Can someone provide me some sample for the proxy layer?

-- lucy
apache-kafka
haproxy
kubernetes
kubernetes-ingress

0 Answers