feat: Add Terraform configuration for GCP infrastructure and Docker setup
This commit is contained in:
parent
94499fd16e
commit
538fed9a66
10 changed files with 283 additions and 0 deletions
17
gcloud/tf/firewall.tf
Normal file
17
gcloud/tf/firewall.tf
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
// Firewall
|
||||
// ----------------------------------
|
||||
resource "google_compute_firewall" "allow_http" {
|
||||
name = "allow-http"
|
||||
network = "default"
|
||||
|
||||
allow {
|
||||
protocol = "tcp"
|
||||
ports = [
|
||||
"80", "443", // http/https
|
||||
"30080" // ports opened to access the python API via NodePort
|
||||
]
|
||||
}
|
||||
|
||||
source_ranges = ["0.0.0.0/0"]
|
||||
target_tags = ["web"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue