diff --git a/deployment/modules/distributor/main.tf b/deployment/modules/distributor/main.tf index 4f41943..fc87634 100644 --- a/deployment/modules/distributor/main.tf +++ b/deployment/modules/distributor/main.tf @@ -196,6 +196,9 @@ resource "google_cloud_run_v2_service" "default" { "--v=1", "--use_cloud_sql", ], var.extra_args) + ports { + container_port = 8080 + } env { name = "INSTANCE_CONNECTION_NAME" @@ -220,6 +223,16 @@ resource "google_cloud_run_v2_service" "default" { } } + startup_probe { + initial_delay_seconds = 1 + timeout_seconds = 1 + period_seconds = 10 + failure_threshold = 3 + tcp_socket { + port = 8080 + } + } + volume_mounts { name = "cloudsql" mount_path = "/cloudsql"