kubetest2 - Specify GCE network name

Kops defaults to a network named "default" and has issues with network modes.
Apparently there is a "default" network within the projects that boskos issues,
causing `kops create cluster` to fail some cloudup validation.

By specifying a cluster-specific network, kops will create this new network with the non-deprecated settings.
This commit is contained in:
Peter Rifel 2021-03-24 21:16:54 -05:00
parent 42fbb1c1c5
commit ac27e2edcd
No known key found for this signature in database
GPG Key ID: BC6469E5B16DB2B6
1 changed files with 1 additions and 0 deletions

View File

@ -118,6 +118,7 @@ func (d *deployer) createCluster(zones []string, adminAccess string) error {
if d.GCPProject != "" {
args = appendIfUnset(args, "--project", d.GCPProject)
}
args = appendIfUnset(args, "--vpc", strings.Split(d.ClusterName, ".")[0])
case "digitalocean":
args = appendIfUnset(args, "--master-size", "s-8vcpu-16gb")
}