diff --git a/tests/tofu/main.tf b/tests/tofu/main.tf index ac5fec5be2..e176c21fa0 100644 --- a/tests/tofu/main.tf +++ b/tests/tofu/main.tf @@ -47,6 +47,11 @@ resource "google_container_cluster" "primary" { cidr_block = "${chomp(data.http.myip.response_body)}/32" display_name = "local-ip" } + + cidr_blocks { + cidr_block = google_compute_subnetwork.subnet.ip_cidr_range + display_name = "vpc" + } } private_cluster_config { diff --git a/tests/tofu/network.tf b/tests/tofu/network.tf index 3b1af659d4..519d52ffe8 100644 --- a/tests/tofu/network.tf +++ b/tests/tofu/network.tf @@ -49,18 +49,6 @@ resource "google_compute_firewall" "deny_exkubelet" { } -resource "google_compute_firewall" "allow_inkublet" { - name = "${var.gke_cluster_name}-allow-inkubelet" - network = google_compute_network.vpc.self_link - direction = "INGRESS" - allow { - protocol = "tcp" - ports = ["10255"] - } - source_tags = ["ngf-tests-${var.gke_cluster_name}-nodes", "ngf-tests-${var.gke_cluster_name}-vm"] - -} - resource "google_compute_address" "vpc-ip" { name = "${var.gke_cluster_name}-vpc-ip" address_type = "EXTERNAL"