Skip to content

Commit d096ad9

Browse files
committed
vp
1 parent 4ed1bce commit d096ad9

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

tests/tofu/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ resource "google_container_cluster" "primary" {
4747
cidr_block = "${chomp(data.http.myip.response_body)}/32"
4848
display_name = "local-ip"
4949
}
50+
51+
cidr_blocks {
52+
cidr_block = google_compute_subnetwork.subnet.ip_cidr_range
53+
display_name = "vpc"
54+
}
5055
}
5156

5257
private_cluster_config {

tests/tofu/network.tf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,6 @@ resource "google_compute_firewall" "deny_exkubelet" {
4949

5050
}
5151

52-
resource "google_compute_firewall" "allow_inkublet" {
53-
name = "${var.gke_cluster_name}-allow-inkubelet"
54-
network = google_compute_network.vpc.self_link
55-
direction = "INGRESS"
56-
allow {
57-
protocol = "tcp"
58-
ports = ["10255"]
59-
}
60-
source_tags = ["ngf-tests-${var.gke_cluster_name}-nodes", "ngf-tests-${var.gke_cluster_name}-vm"]
61-
62-
}
63-
6452
resource "google_compute_address" "vpc-ip" {
6553
name = "${var.gke_cluster_name}-vpc-ip"
6654
address_type = "EXTERNAL"

0 commit comments

Comments
 (0)