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:
parent
a9ca65bc31
commit
614d3c72bd
1 changed files with 10 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue