I've two servers with ephemeral external ips.
ServerA ServerB
and I've one Static external IP address (A.B.C.D), which is currently attached to ServerA.
ServerA is my primary loadbalancer, and ServerB is my secondary. How can I use a floating IP on Google Cloud.
Do I need to use gcloud? Is this a good solution?
Example command of failover:
gcloud config set project project-name
gcloud compute instances delete-access-config ServerA --access-config-name 'External NAT
gcloud compute instances delete-access-config ServerB --access-config-name 'External NAT'
gcloud compute instances add-access-config ServerB --address A.B.C.D