When running in GCE platform, an instance has access to:
http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip
Which gives back the private IP address, for example 10.240.0.2.
http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/externalIp
Gives back the public Ip address, for example 130.211.108.21.
As we have for ec2, we can support new network host settings:
_gce:privateIp_: maps to ip
_gce:publicIp_: maps to externalIp
_gce_ shorter version for _gce:privateIp_
When running in GCE platform, an instance has access to:
http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/ip
Which gives back the private IP address, for example
10.240.0.2.http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/externalIp
Gives back the public Ip address, for example
130.211.108.21.As we have for
ec2, we can support new network host settings:_gce:privateIp_: maps toip_gce:publicIp_: maps toexternalIp_gce_shorter version for_gce:privateIp_