From 60153360982321e8254850a9fd6ebc4acfae087b Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Thu, 14 Jun 2018 11:08:02 -0400 Subject: [PATCH] GCE: Set network tier, to avoid spurious changes Otherwise we were seeing instance templates changing every time. PREMIUM is the default, so we set it to PREMIUM for compatability. In future we may want to expose this option. --- upup/pkg/fi/cloudup/gcetasks/instancetemplate.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upup/pkg/fi/cloudup/gcetasks/instancetemplate.go b/upup/pkg/fi/cloudup/gcetasks/instancetemplate.go index ae2f7c0869351..8474659d53002 100644 --- a/upup/pkg/fi/cloudup/gcetasks/instancetemplate.go +++ b/upup/pkg/fi/cloudup/gcetasks/instancetemplate.go @@ -242,7 +242,8 @@ func (e *InstanceTemplate) mapToGCE(project string) (*compute.InstanceTemplate, AccessConfigs: []*compute.AccessConfig{{ Kind: "compute#accessConfig", //NatIP: *e.IPAddress.Address, - Type: "ONE_TO_ONE_NAT", + Type: "ONE_TO_ONE_NAT", + NetworkTier: "PREMIUM", }}, Network: e.Network.URL(project), }