cookeem / kubeadm-ha

通过kubeadm安装kubernetes高可用集群,使用docker/containerd容器运行时,适用v1.24.x以上版本
MIT License
678 stars 275 forks source link

Check keepalived work #49

Open AlexProfi opened 5 years ago

AlexProfi commented 5 years ago

Hello How check that keepalived work i ping from one masternode virtal ip and get ping 10.10.61.154 PING 10.10.61.154 (10.10.61.154) 56(84) bytes of data. From 10.10.61.211 icmp_seq=1 Destination Host Unreachable From 10.10.61.211 icmp_seq=2 Destination Host Unreachable So it doen't work How config router for kepalived work correctly? I also use proxy server to access inernet addresse On another stand it works fine There is no proxy there and router is more simple

cookeem commented 5 years ago

Ping is not used proxy to check connection, so I think there’s nothing to do with the proxy.

Can you show me the keepalived logs?

AlexProfi commented 5 years ago

I solved it temporary with set drop multicast from another hardware that used vrrp ( nobody don't know what is it) in same network with iptables:

 iptables -A INPUT -m pkttype -m iprange --src-range 10.10.61.211-10.10.61.213 --pkt-type multicast -j ACCEPT
 iptables -A INPUT -m pkttype --pkt-type multicast -j DROP

How config two separate keepalived without this using of firewall?

Without this rules I get logs

_Keepalived_vrrp[5114]: ip address associated with VRID not present in received packet : 10.10.61.154 Jan 15 18:12:46 hb-master01 Keepalived_vrrp[5114]: one or more VIP associated with VRID mismatch actual MASTER advert Jan 15 18:12:46 hb-master01 Keepalived_vrrp[5114]: bogus VRRP packet received on ens160 !!! Jan 15 18:12:46 hb-master01 Keepalived_vrrp[5114]: VRRP_Instance(VI_1) Dropping received VRRP packet... Jan 15 18:12:47 hb-master01 Keepalived_vrrp[5114]: ip address associated with VRID not present in received packet : 10.10.61.154 Jan 15 18:12:47 hb-master01 Keepalived_vrrp[5114]: one or more VIP associated with VRID mismatch actual MASTER advert Jan 15 18:12:47 hb-master01 Keepalived_vrrp[5114]: bogus VRRP packet received on ens160 !!! Jan 15 18:12:47 hb-master01 Keepalived_vrrp[5114]: VRRP_Instance(VI1) Dropping received VRRP packet...