Skip to content

Commit

Permalink
Merge pull request #421 from iberryful/gcp-cidr
Browse files Browse the repository at this point in the history
fix(gcp) create subnetwork for each cluster
  • Loading branch information
iberryful authored Sep 28, 2020
2 parents d96db2c + 310118d commit 5711ea2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/gcp/pkg/stub/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ func createCluster(cr *v1alpha1.GKECluster, log *logrus.Entry) (*v1alpha1.GKEClu
}

args = append(args, "--enable-ip-alias")
args = append(args, "--create-subnetwork", "")

if cr.Spec.ClusterCidr == "" {
cr.Spec.ClusterCidr = "/18"
args = append(args, "--cluster-ipv4-cidr", cr.Spec.ClusterCidr)
Expand Down

0 comments on commit 5711ea2

Please sign in to comment.