检查配置

haproxy -c -f  /etc/haproxy/haproxy.cfg

k8s03集群同步配置并重启haproxy

#在10.254.70.10 上修改haproxy 配置
cp haproxy.cfg /data/backup/haproxy.cfg-autoback-$(date +%F)
systemctl restart haproxy
scp /etc/haproxy/haproxy.cfg 10.254.70.11:/etc/haproxy/haproxy.cfg
scp /etc/haproxy/haproxy.cfg 10.254.70.12:/etc/haproxy/haproxy.cfg
scp /etc/haproxy/haproxy.cfg 10.254.70.13:/etc/haproxy/haproxy.cfg

ssh root@10.254.70.11 "systemctl restart haproxy"
ssh root@10.254.70.12 "systemctl restart haproxy"
ssh root@10.254.70.13 "systemctl restart haproxy"
文档更新时间: 2020-04-19 09:09   作者:月影鹏鹏