I have a script that needs to connect to the currently active head of a high-availability cluster.
Each node in the cluster has a fixed hostname and IP address.
The current head additionally has a "virtual IP". In the case of a switchover or failover, another node configures the "virtual IP" and begins acting as the head.
Can I just point my script at the virtual IP? Won't ssh
complain about mismatching host keys when the cluster moves the virtual IP to a different node?