本文主要是代理kubernetes master的高可用。
安装haproxy和keepalived
1 | # yum -y install keepalived |
2、配置haproxy
1 | # cat /etc/haproxy/haproxy.cfg |
3、keepalived配置
1 | # cat keepalived.conf |
- 监测脚本
1 | # cat haproxy_check.sh |
- 启动服务
1 | # systemctl enable haproxy &&systemctl enable keepalived |