Haproxy in front of elastic ECK

I need help configure HAProxy in front of Elastic ECK

Using curl, when I connect directly to the backend elasticsearch I got the correct response. example :

curl -k -L -XGET '' -u 'elastic:MyPasswordHere' --header 'Host: elasticsearch.lab.localdomain.com'
ip             heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name             22          51   0    0.23    0.22     0.23 dilrt     -      lab-main-elasticsearch-es-hot-nodes-3

But when I connect through haproxy I got Error 404 Not Found.

curl -k -L -XGET '' -u 'elastic:MyPasswordHere' --header 'Host: elasticsearch.lab.localdomain.com'
404 page not found

Here is my haproxy configuration:

frontend xeckp
  bind ssl crt /etc/ssl/private/server.crt
  default_backend xbackend
backend xbackend
  balance roundrobin
    server eck-workernode-1 verify none fall 2 rise 1
    server eck-workernode-2 verify none fall 2 rise 1
    server eck-workernode-3 verify none fall 2 rise 1

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.