I'm trying to find a way to persits the keepalived virtual ips across the cluster, on master and backup nodes.
By default, keepalived only activates the virtual ip, on the node that is playing the master role. All the other nodes will have it removed.
What I want to achieve is the have this virtual ip active all the time on all the nodes (master and backup), even after the master gets restarted.
Up until now, I was able to activate the VIP on all my nodes, by running the command:
sudo ip addr add 192.168.1.100/24 dev enp0s3
But the problem with this is that: once I'm restarting the master node, the VIPs will be removed from the backup nodes.
I need something that will persist these VIPs even after the master restart. Any ideas?
Thanks