From 7032dfe61f2b8925b1a9abae65b16fd1dcc6e2ee Mon Sep 17 00:00:00 2001 From: Antonio Tarricone <110115827+antoniotarricone@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:13:33 +0100 Subject: [PATCH] fix: Probes enabled on container app. (#168) --- src/main/terraform/container_app.tf | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/main/terraform/container_app.tf b/src/main/terraform/container_app.tf index 165f600..f8b0b11 100644 --- a/src/main/terraform/container_app.tf +++ b/src/main/terraform/container_app.tf @@ -118,6 +118,39 @@ resource "azurerm_container_app" "auth" { name = "IDENTITY_CLIENT_ID" secret_name = "identity-client-id" } + + liveness_probe { + path = "/q/health/live" + port = 8080 + transport = HTTP + initial_delay = 0 + interval_seconds = 10 + failure_count_threshold = 3 + timeout = 1 + termination_grace_period_seconds = 120 + } + + readiness_probe { + path = "/q/health/ready" + port = 8080 + transport = HTTP + initial_delay = 0 + interval_seconds = 10 + failure_count_threshold = 3 + success_count_threshold = 3 + timeout = 1 + } + + startup_probe { + path = "/q/health/started" + port = 8080 + transport = HTTP + initial_delay = 0 + interval_seconds = 10 + failure_count_threshold = 3 + timeout = 1 + termination_grace_period_seconds = 120 + } } max_replicas = var.mil_auth_max_replicas