Hi
I have HAproxy implementation in Kubernetes
it is based on “haproxy:1.9” docker image.
I want to be able to update configuration without the need to restart pods.
I tried to follow “https://www.haproxy.com/blog/hitless-reloads-with-haproxy-howto/”
but the service fail to restart due to the following error :
“unknown stats parameter ‘socket’, expects ‘admin’, ‘uri’, ‘realm’, ‘auth’, ‘scope’, ‘enable’, ‘hide-version’, ‘show-node’, ‘show-desc’ or ‘show-legends’”
What am I missing ?
Are there any missing dependencies/utilities I need to include into the container in order to make it work ?
This is my haproxy.cfg:
global
maxconn 4000
defaults
log stdout format raw local0 debug
maxconn 15000
mode http
option httplog
option dontlognull
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 45s
timeout server 45s
stats socket /var/run/haproxy.sock mode 600 expose-fd listeners level user
stats enable
stats hide-version
stats scope .
frontend chat_server_frontend
bind *:80
mode http
default_backend web-backend
backend web-backend
balance roundrobin
mode http
server web1 172.17.0.18:8080 check
server web2 172.17.0.16:8080 check
server web3 172.17.0.19:8080 check
stats refresh 1s