Skip to content

Commit

Permalink
tweak probes to give more time to api and geo deployments to start [M…
Browse files Browse the repository at this point in the history
…RXN23-608]
  • Loading branch information
hotzevzl committed Mar 14, 2024
1 parent 61f94b9 commit ca2f75c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 6 deletions.
20 changes: 18 additions & 2 deletions infrastructure/kubernetes/modules/api/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,20 @@ resource "kubernetes_deployment" "api_deployment" {
}
}

startup_probe {
http_get {
path = "/api/ping"
port = 3000
scheme = "HTTP"
}

success_threshold = 1
failure_threshold = 30
period_seconds = 10
timeout_seconds = 5
initial_delay_seconds = 30
}

liveness_probe {
http_get {
path = "/api/ping"
Expand All @@ -318,6 +332,7 @@ resource "kubernetes_deployment" "api_deployment" {
}

success_threshold = 1
failure_threshold = 3
timeout_seconds = 5
initial_delay_seconds = 15
period_seconds = 15
Expand All @@ -331,9 +346,10 @@ resource "kubernetes_deployment" "api_deployment" {
}

success_threshold = 1
failure_threshold = 3
timeout_seconds = 5
initial_delay_seconds = 30
period_seconds = 15
initial_delay_seconds = 10
period_seconds = 10
}
}
}
Expand Down
24 changes: 20 additions & 4 deletions infrastructure/kubernetes/modules/geoprocessing/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,20 @@ resource "kubernetes_deployment" "geoprocessing_deployment" {
}
}

startup_probe {
http_get {
path = "/api/ping"
port = 3000
scheme = "HTTP"
}

success_threshold = 1
failure_threshold = 30
period_seconds = 10
timeout_seconds = 5
initial_delay_seconds = 30
}

liveness_probe {
http_get {
path = "/api/ping"
Expand All @@ -278,9 +292,10 @@ resource "kubernetes_deployment" "geoprocessing_deployment" {
}

success_threshold = 1
failure_threshold = 3
timeout_seconds = 5
initial_delay_seconds = 90
period_seconds = 30
initial_delay_seconds = 15
period_seconds = 15
}

readiness_probe {
Expand All @@ -291,9 +306,10 @@ resource "kubernetes_deployment" "geoprocessing_deployment" {
}

success_threshold = 1
failure_threshold = 3
timeout_seconds = 5
initial_delay_seconds = 30
period_seconds = 15
initial_delay_seconds = 10
period_seconds = 10
}
}
}
Expand Down

0 comments on commit ca2f75c

Please sign in to comment.