Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add health probes and ingress #1408

Merged
merged 7 commits into from
Mar 7, 2025
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ resource "azurerm_container_app" "container_app" {
identity = azurerm_user_assigned_identity.acaghr_managed_identity.id
server = data.azurerm_container_registry.altinncr.login_server
}
ingress {
allow_insecure_connections = false
target_port = 8080
transport = "http"
external_enabled = true
traffic_weight {
percentage = 100
}
}
template {
container {
name = "dis-demo-pgsql"
Expand All @@ -44,9 +53,38 @@ resource "azurerm_container_app" "container_app" {
"webserver",
"--auth-enabled"
]
startup_probe {
path = "/swagger/swagger.json"
initial_delay = 0
interval_seconds = 1
failure_count_threshold = 10
timeout = 1
port = 8080
transport = "http"
}
readiness_probe {
path = "/swagger/swagger.json"
initial_delay = 0
interval_seconds = 1
failure_count_threshold = 3
success_count_threshold = 1
timeout = 1
port = 8080
transport = "http"
}
liveness_probe {
path = "/swagger/swagger.json"
initial_delay = 0
interval_seconds = 1
failure_count_threshold = 3
timeout = 1
port = 8080
transport = "http"
}
}
min_replicas = 0
max_replicas = 1

http_scale_rule {
name = "http-scale-rule"
concurrent_requests = 1000
Expand Down
Loading