add liveness probe to annas-archive-stacks deployment

Prevents corrupted SQLite DB from looping errors forever —
K8s will auto-restart the pod if /api/version stops responding.
This commit is contained in:
Viktor Barzin 2026-03-29 00:17:29 +02:00
parent a9ca65bc31
commit 614d3c72bd

View file

@ -408,6 +408,16 @@ resource "kubernetes_deployment" "annas-archive-stacks" {
port {
container_port = 7788
}
liveness_probe {
http_get {
path = "/api/version"
port = 7788
}
initial_delay_seconds = 15
period_seconds = 30
timeout_seconds = 5
failure_threshold = 3
}
volume_mount {
name = "config"
mount_path = "/opt/stacks/config"