How to use haproxy with consul cluster?

i have 3 node consul (1 leader, 2 follow),
I want to know how to configure haproxy for this model, assuming when the leader of the node dead, haproxy will load another node balancing?

It seems you want to load-balance your consul servers.
Just put HAProxy in front of them in tcp mode and you’re good.

Double check you don’t need to send all traffic to the leader though…