HAProxy community

Problems with HAProxy settings

I need help … I have a kubernetes cluster with two workers which expose a docker image of my application.
I made the haproxy configuration, which I leave here:

The problem I have is that in the HAProxy monitor these two servers appear connected and disconnected, to say something they do not always remain green, but they are alternating between green and red.

What can this problem be caused ?.
I ask for your help.
Thank you.

As you can see in the LastChk column, the error is L4CON, which as per the management guide, means:

layer 1-4 connection problem, for example “Connection refused” (tcp rst) or “No route to host” (icmp)

Thanks for your answer lukastribus.
But is it normal that first there are connection problems and then connect?
this happens for both servers

Thank you.

No, it’s not normal. But it also has nothing to do with Haproxy. Check the destination server, perhaps you have some iptables issue and intermediate devices especially firewalls.

I managed to solve the problem. maintained this intermittence was due to the fact that the firewall was activated on the computers that make up the Kubernetes cluster.
Thank you very much for your help and the prompt response.