[ON-PREM] HAProxy enable listening sockets retrieval from old processes
To use the -x option [1] in HAProxy the socket must be enabled using "expose-fd listeners" in haproxy configuration.
[1]
@@ -2,6 +2,8 @@ mode: 0644
path: "/etc/kubernetes/static-pod-resources/haproxy/haproxy.cfg.tmpl"
contents:
inline: |
+ global
+ stats socket /var/lib/haproxy/run/haproxy.sock mode 600 level admin expose-fd listeners
defaults
maxconn 20000
mode tcp
