Fix Cloud Run: remove reserved PORT env, increase startup probe tolerance
This commit is contained in:
@@ -43,11 +43,6 @@ resource "google_cloud_run_v2_service" "accounts_us" {
|
|||||||
name = "ENV"
|
name = "ENV"
|
||||||
value = "production"
|
value = "production"
|
||||||
}
|
}
|
||||||
env {
|
|
||||||
name = "PORT"
|
|
||||||
value = "8080"
|
|
||||||
}
|
|
||||||
|
|
||||||
env {
|
env {
|
||||||
name = "ACCOUNTS_DATABASE_URL"
|
name = "ACCOUNTS_DATABASE_URL"
|
||||||
value_source {
|
value_source {
|
||||||
@@ -188,11 +183,6 @@ resource "google_cloud_run_v2_service" "accounts_eu" {
|
|||||||
name = "ENV"
|
name = "ENV"
|
||||||
value = "production"
|
value = "production"
|
||||||
}
|
}
|
||||||
env {
|
|
||||||
name = "PORT"
|
|
||||||
value = "8080"
|
|
||||||
}
|
|
||||||
|
|
||||||
env {
|
env {
|
||||||
name = "ACCOUNTS_DATABASE_URL"
|
name = "ACCOUNTS_DATABASE_URL"
|
||||||
value_source {
|
value_source {
|
||||||
@@ -331,11 +321,6 @@ resource "google_cloud_run_v2_service" "accounts_apac" {
|
|||||||
name = "ENV"
|
name = "ENV"
|
||||||
value = "production"
|
value = "production"
|
||||||
}
|
}
|
||||||
env {
|
|
||||||
name = "PORT"
|
|
||||||
value = "8080"
|
|
||||||
}
|
|
||||||
|
|
||||||
env {
|
env {
|
||||||
name = "ACCOUNTS_DATABASE_URL"
|
name = "ACCOUNTS_DATABASE_URL"
|
||||||
value_source {
|
value_source {
|
||||||
|
|||||||
@@ -42,10 +42,6 @@ resource "google_cloud_run_v2_service" "api_us" {
|
|||||||
name = "ENV"
|
name = "ENV"
|
||||||
value = "production"
|
value = "production"
|
||||||
}
|
}
|
||||||
env {
|
|
||||||
name = "PORT"
|
|
||||||
value = "8080"
|
|
||||||
}
|
|
||||||
env {
|
env {
|
||||||
name = "ACCOUNTS_SERVICE_URL"
|
name = "ACCOUNTS_SERVICE_URL"
|
||||||
value = "https://accounts.neurontechnologies.ai"
|
value = "https://accounts.neurontechnologies.ai"
|
||||||
@@ -143,10 +139,6 @@ resource "google_cloud_run_v2_service" "api_eu" {
|
|||||||
name = "ENV"
|
name = "ENV"
|
||||||
value = "production"
|
value = "production"
|
||||||
}
|
}
|
||||||
env {
|
|
||||||
name = "PORT"
|
|
||||||
value = "8080"
|
|
||||||
}
|
|
||||||
env {
|
env {
|
||||||
name = "ACCOUNTS_SERVICE_URL"
|
name = "ACCOUNTS_SERVICE_URL"
|
||||||
value = "https://accounts.neurontechnologies.ai"
|
value = "https://accounts.neurontechnologies.ai"
|
||||||
@@ -241,10 +233,6 @@ resource "google_cloud_run_v2_service" "api_apac" {
|
|||||||
name = "ENV"
|
name = "ENV"
|
||||||
value = "production"
|
value = "production"
|
||||||
}
|
}
|
||||||
env {
|
|
||||||
name = "PORT"
|
|
||||||
value = "8080"
|
|
||||||
}
|
|
||||||
env {
|
env {
|
||||||
name = "ACCOUNTS_SERVICE_URL"
|
name = "ACCOUNTS_SERVICE_URL"
|
||||||
value = "https://accounts.neurontechnologies.ai"
|
value = "https://accounts.neurontechnologies.ai"
|
||||||
|
|||||||
@@ -100,10 +100,10 @@ resource "google_cloud_run_v2_service" "prod_us" {
|
|||||||
path = "/api/health"
|
path = "/api/health"
|
||||||
port = 3000
|
port = 3000
|
||||||
}
|
}
|
||||||
initial_delay_seconds = 5
|
initial_delay_seconds = 10
|
||||||
timeout_seconds = 5
|
timeout_seconds = 5
|
||||||
period_seconds = 10
|
period_seconds = 10
|
||||||
failure_threshold = 3
|
failure_threshold = 10
|
||||||
}
|
}
|
||||||
|
|
||||||
liveness_probe {
|
liveness_probe {
|
||||||
@@ -214,10 +214,10 @@ resource "google_cloud_run_v2_service" "prod_eu" {
|
|||||||
path = "/api/health"
|
path = "/api/health"
|
||||||
port = 3000
|
port = 3000
|
||||||
}
|
}
|
||||||
initial_delay_seconds = 5
|
initial_delay_seconds = 10
|
||||||
timeout_seconds = 5
|
timeout_seconds = 5
|
||||||
period_seconds = 10
|
period_seconds = 10
|
||||||
failure_threshold = 3
|
failure_threshold = 10
|
||||||
}
|
}
|
||||||
|
|
||||||
liveness_probe {
|
liveness_probe {
|
||||||
@@ -328,10 +328,10 @@ resource "google_cloud_run_v2_service" "prod_apac" {
|
|||||||
path = "/api/health"
|
path = "/api/health"
|
||||||
port = 3000
|
port = 3000
|
||||||
}
|
}
|
||||||
initial_delay_seconds = 5
|
initial_delay_seconds = 10
|
||||||
timeout_seconds = 5
|
timeout_seconds = 5
|
||||||
period_seconds = 10
|
period_seconds = 10
|
||||||
failure_threshold = 3
|
failure_threshold = 10
|
||||||
}
|
}
|
||||||
|
|
||||||
liveness_probe {
|
liveness_probe {
|
||||||
@@ -448,7 +448,7 @@ resource "google_cloud_run_v2_service" "stage" {
|
|||||||
path = "/api/health"
|
path = "/api/health"
|
||||||
port = 3000
|
port = 3000
|
||||||
}
|
}
|
||||||
initial_delay_seconds = 5
|
initial_delay_seconds = 10
|
||||||
timeout_seconds = 5
|
timeout_seconds = 5
|
||||||
period_seconds = 10
|
period_seconds = 10
|
||||||
failure_threshold = 5
|
failure_threshold = 5
|
||||||
|
|||||||
Reference in New Issue
Block a user