Skip to content

Commit 30b5a4d

Browse files
committed
create clusters in vpc native networking mode
1 parent 499a88d commit 30b5a4d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scaletest/terraform/gcp_cluster.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ resource "google_container_cluster" "primary" {
88
project = var.project_id
99
network = google_compute_network.vpc.name
1010
subnetwork = google_compute_subnetwork.subnet.name
11+
networking_mode = "VPC_NATIVE"
12+
ip_allocation_policy { # Required with networking_mode=VPC_NATIVE
13+
14+
}
15+
release_channel {
16+
channel = "STABLE"
17+
}
1118
initial_node_count = 1
1219
remove_default_node_pool = true
1320
network_policy {

0 commit comments

Comments
 (0)