gce-terraform: Open GCE nodeports
@@ -94,6 +94,21 @@ resource "google_compute_firewall" "internal" {
]
}
+resource "google_compute_firewall" "nodeports" {
+ name = "${var.cluster_name}-nodeports"
+ network = google_compute_network.network.self_link
+
+ allow {
+ protocol = "tcp"
+ ports = ["30000-32767"]
+ }
+
+ source_ranges = [
+ "0.0.0.0/0",
+ ]
+}
+
+
resource "google_compute_address" "lb_ip" {
name = "${var.cluster_name}-lb-ip"
}
