how to add static ip address to vm instance gcloud
how to reserve and add an ipv4 address gcloud
Reserving a Static External IP Address
Reserving and assigning a static external IP address
Go to the Reserve a static address page in the GCP Console.
Choose a name for the new address.
Specify whether this is an IPv4 or IPv6 address. IPv6 addresses can only be global and can only be used with global HTTP(S), SSL proxy, and TCP proxy load balancers.
Choose whether this IP address is regional or global. If you are reserving a static IP address for an instance or for a Network load balancer, choose Regional. If you are reserving a static IP address for an HTTP(S), SSL proxy, or TCP proxy load balancer, choose Global.
If this is a regional IP address, select the region to create the address in.