我的docker通信ip网段是: 10.0.0.x
云服务的私有ip地址是: 10.130.x.x
我配置msyql集群负载均衡中的keepalived的虚拟网段怎么配置。两个haproxy容器和宿主机的keepalived关键部分配置是怎么配置, 有点懵, 容器内这样可以吗。
vrrp_instance VI_1 {
state MASTER
interface eth1
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 123456
}
virtual_ipaddress {
10.130.68.21
}
}
virtual_server 10.130.68.21 6201 {
delay_loop 3
lb_algo rr
lb_kind NAT
persistence_timeout 50
protocol TCP
real_server 10.0.0.2 3306 {
weight 1
}
}