mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
moby: enable internet access for GCP VM's
Adds an "access config" with a type of "ONE_TO_ONE_NAT" that allows an instance to obtain an ephemeral IP address and access the internet Signed-off-by: Dave Tucker <dt@docker.com>
This commit is contained in:
parent
f47bc385c6
commit
90ed2469db
@ -211,6 +211,11 @@ func (g GCPClient) CreateInstance(name, image, zone, machineType string, replace
|
|||||||
NetworkInterfaces: []*compute.NetworkInterface{
|
NetworkInterfaces: []*compute.NetworkInterface{
|
||||||
{
|
{
|
||||||
Network: "global/networks/default",
|
Network: "global/networks/default",
|
||||||
|
AccessConfigs: []*compute.AccessConfig{
|
||||||
|
{
|
||||||
|
Type: "ONE_TO_ONE_NAT",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Metadata: &compute.Metadata{
|
Metadata: &compute.Metadata{
|
||||||
|
Loading…
Reference in New Issue
Block a user