Skip to content

Commit

Permalink
vp
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Dec 20, 2024
1 parent 17b0af4 commit e9f24c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
5 changes: 5 additions & 0 deletions tests/tofu/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 0 additions & 12 deletions tests/tofu/network.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e9f24c8

Please sign in to comment.