Fix Cloud Run probe ports and LB timeout_sec

- accounts: add ACCOUNTS_PORT=8080 env var (service defaults to 7753)
- api: add SERVER_PORT=8080 env var, change probe path to /actuator/health
- LB backends: remove timeout_sec (not supported for serverless NEG backends)
This commit is contained in:
Will Anderson
2026-04-26 00:28:33 -05:00
parent 36cfd3738d
commit 53f2ad3c16
3 changed files with 32 additions and 10 deletions
+2 -4
View File
@@ -57,8 +57,7 @@ resource "google_compute_backend_service" "accounts" {
project = var.project_id
load_balancing_scheme = "EXTERNAL_MANAGED"
protocol = "HTTPS"
timeout_sec = 30
# timeout_sec not supported for serverless NEG backends
security_policy = google_compute_security_policy.marketing.self_link
# No CDN for accounts — responses are user-specific and must not be cached
@@ -81,8 +80,7 @@ resource "google_compute_backend_service" "api" {
project = var.project_id
load_balancing_scheme = "EXTERNAL_MANAGED"
protocol = "HTTPS"
timeout_sec = 60 # API calls may be longer (AI inference routing)
# timeout_sec not supported for serverless NEG backends
security_policy = google_compute_security_policy.marketing.self_link
enable_cdn = false # API responses are per-request; no CDN benefit