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:
@@ -42,6 +42,10 @@ resource "google_cloud_run_v2_service" "api_us" {
|
||||
name = "ENV"
|
||||
value = "production"
|
||||
}
|
||||
env {
|
||||
name = "SERVER_PORT"
|
||||
value = "8080"
|
||||
}
|
||||
env {
|
||||
name = "ACCOUNTS_SERVICE_URL"
|
||||
value = "https://accounts.neurontechnologies.ai"
|
||||
@@ -73,7 +77,7 @@ resource "google_cloud_run_v2_service" "api_us" {
|
||||
|
||||
startup_probe {
|
||||
http_get {
|
||||
path = "/health"
|
||||
path = "/actuator/health"
|
||||
port = 8080
|
||||
}
|
||||
initial_delay_seconds = 2
|
||||
@@ -84,7 +88,7 @@ resource "google_cloud_run_v2_service" "api_us" {
|
||||
|
||||
liveness_probe {
|
||||
http_get {
|
||||
path = "/health"
|
||||
path = "/actuator/health"
|
||||
port = 8080
|
||||
}
|
||||
timeout_seconds = 5
|
||||
@@ -139,6 +143,10 @@ resource "google_cloud_run_v2_service" "api_eu" {
|
||||
name = "ENV"
|
||||
value = "production"
|
||||
}
|
||||
env {
|
||||
name = "SERVER_PORT"
|
||||
value = "8080"
|
||||
}
|
||||
env {
|
||||
name = "ACCOUNTS_SERVICE_URL"
|
||||
value = "https://accounts.neurontechnologies.ai"
|
||||
@@ -170,7 +178,7 @@ resource "google_cloud_run_v2_service" "api_eu" {
|
||||
|
||||
startup_probe {
|
||||
http_get {
|
||||
path = "/health"
|
||||
path = "/actuator/health"
|
||||
port = 8080
|
||||
}
|
||||
initial_delay_seconds = 2
|
||||
@@ -181,7 +189,7 @@ resource "google_cloud_run_v2_service" "api_eu" {
|
||||
|
||||
liveness_probe {
|
||||
http_get {
|
||||
path = "/health"
|
||||
path = "/actuator/health"
|
||||
port = 8080
|
||||
}
|
||||
timeout_seconds = 5
|
||||
@@ -233,6 +241,10 @@ resource "google_cloud_run_v2_service" "api_apac" {
|
||||
name = "ENV"
|
||||
value = "production"
|
||||
}
|
||||
env {
|
||||
name = "SERVER_PORT"
|
||||
value = "8080"
|
||||
}
|
||||
env {
|
||||
name = "ACCOUNTS_SERVICE_URL"
|
||||
value = "https://accounts.neurontechnologies.ai"
|
||||
@@ -264,7 +276,7 @@ resource "google_cloud_run_v2_service" "api_apac" {
|
||||
|
||||
startup_probe {
|
||||
http_get {
|
||||
path = "/health"
|
||||
path = "/actuator/health"
|
||||
port = 8080
|
||||
}
|
||||
initial_delay_seconds = 2
|
||||
@@ -275,7 +287,7 @@ resource "google_cloud_run_v2_service" "api_apac" {
|
||||
|
||||
liveness_probe {
|
||||
http_get {
|
||||
path = "/health"
|
||||
path = "/actuator/health"
|
||||
port = 8080
|
||||
}
|
||||
timeout_seconds = 5
|
||||
|
||||
Reference in New Issue
Block a user