gce: don't try to specify a pre-existing network

We now automatically create a network if an existing one is not
specified.
This commit is contained in:
justinsb 2021-10-24 21:31:32 -04:00
parent 3caa61bd20
commit 59d6174eb2
1 changed files with 2 additions and 1 deletions

View File

@ -131,7 +131,8 @@ func (d *deployer) createCluster(zones []string, adminAccess string) error {
if d.GCPProject != "" { if d.GCPProject != "" {
args = appendIfUnset(args, "--project", d.GCPProject) args = appendIfUnset(args, "--project", d.GCPProject)
} }
args = appendIfUnset(args, "--vpc", strings.Split(d.ClusterName, ".")[0]) // We used to set the --vpc flag to split clusters into different networks, this is now the default.
// args = appendIfUnset(args, "--vpc", strings.Split(d.ClusterName, ".")[0])
case "digitalocean": case "digitalocean":
args = appendIfUnset(args, "--master-size", "c2-16vcpu-32gb") args = appendIfUnset(args, "--master-size", "c2-16vcpu-32gb")
args = appendIfUnset(args, "--node-size", "c2-16vcpu-32gb") args = appendIfUnset(args, "--node-size", "c2-16vcpu-32gb")