Skip to content

Add _gce_ network host setting #13605

@dadoonet

Description

@dadoonet

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_

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions