Skip to content

Commit ca8a76b

Browse files
committed
DTOSS-11646: Setup Container Apps container probes
We need to configure a container probe (liveness/readiness) for our Azure Container Apps deployment. By default, the web application should only have a heath probe if the variable probe_path is set. If probe_path is null then it's disabled. Please note that we cannot do this for the Postgres DB container as there is no Django / restful interface to implement.
1 parent 0aa198e commit ca8a76b

File tree

1 file changed

+2
-0
lines changed
  • infrastructure/modules/container-apps

1 file changed

+2
-0
lines changed

infrastructure/modules/container-apps/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ module "webapp" {
4848
)
4949
is_web_app = true
5050
port = 8000
51+
probe_path = "/healthcheck"
52+
5153
}
5254

5355
module "azurerm_application_insights_standard_web_test" {

0 commit comments

Comments
 (0)