Skip to content

Commit

Permalink
fix: Probes enabled on container app. (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored Dec 20, 2024
1 parent 2e6b90c commit 7032dfe
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/main/terraform/container_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7032dfe

Please sign in to comment.