I am setting up a three node cluster with failover IP, cloud vlan and keepalived on ubuntu 20.04. I tried various options for configuring keepalived. The virtual IP address gets assigned but is not reachable from another node within the cluster.
/etc/netplan/keepalived.yaml
/etc/keepalived/keepalived.conf
Code
vrrp_script chk_haproxy {
script "killall -0 haproxy"
interval 2
rise 2
}
vrrp_instance VI_1 {
interface ens192
state BACKUP
priority 100
advert_int 1
virtual_router_id 50
unicast_src_ip 192.168.60.48
unicast_peer {
192.168.60.49
}
virtual_ipaddress {
192.168.60.50/24 dev ens01
}
track_script {
chk_haproxy
}
}
Alles anzeigen
I tried creating the network interface using systemd-networkd:
I tried with use_vmac, strict_mode off and few other settings but I am unable to ping the virtual IP address from another machine. There are no firewalls and the nodes are able to talk to each other using the cloud vlan network configuration. Do I need to do any additional routing settings?