Haproxy in front of elastic ECK

Hi
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 'https://192.168.0.10:31800/_cat/nodes?v' -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
192.168.90.7             22          51   0    0.23    0.22     0.23 dilrt     -      lab-main-elasticsearch-es-hot-nodes-3
...snip...

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

curl -k -L -XGET 'https://192.168.0.101:443/_cat/nodes?v' -u 'elastic:MyPasswordHere' --header 'Host: elasticsearch.lab.localdomain.com'
404 page not found

Here is my haproxy configuration:

frontend xeckp
  bind 192.168.0.101:443 ssl crt /etc/ssl/private/server.crt
  default_backend xbackend
backend xbackend
  balance roundrobin
    server eck-workernode-1 192.168.0.10:31800 verify none fall 2 rise 1
    server eck-workernode-2 192.168.0.11:31800 verify none fall 2 rise 1
    server eck-workernode-3 192.168.0.12:31800 verify none fall 2 rise 1

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