HAProxy
Be careful to always indent HAProxy configuration with tabs!
Example (frontend/backend) configuration (here cookies are just for tests purpose):
frontend f.8082
bind :8082
default_backend b.8082
backend b.8082
balance roundrobin
http-response set-header X-Server %s
http-response set-header Set-Cookie server=%s
server kube-1 10.0.3.101:8082 check
server kube-2 10.0.0.187:8082 check
server kube-3 10.0.0.204:8082 check
Edit and apply configuration:
sudo nano /etc/haproxy/haproxy.cfg
sudo service haproxy restart
Last updated
Was this helpful?