Keepalived High-Availaible
Package
vrrp_instance VI_1 {
state MASTER
interface ens33
virtual_router_id 55
priority 150
advert_int 1
unicast_src_ip 192.168.43.200
unicast_peer {
192.168.43.159
}
authentication {
auth_type PASS
auth_pass C3P9K9gc
}
virtual_ipaddress {
192.168.43.160/24
}
}
Same goes to Second Node also
vrrp_instance VI_1 {
state BACKUP
interface ens33
virtual_router_id 55
priority 100
advert_int 1
unicast_src_ip 192.168.43.159
unicast_peer {
192.168.43.200
}
authentication {
auth_type PASS
auth_pass C3P9K9gc
}
virtual_ipaddress {
192.168.43.160/24
}
}
Node 1 :
Node 2:
Now you have two node with high available services