[ci skip] add liveness probe to Send deployment
Prevents stale Redis connections from silently breaking file uploads. The old Node.js Redis client doesn't auto-reconnect after Redis restarts, causing all files to appear expired.
This commit is contained in:
parent
144fd151cb
commit
650c2a6ed4
1 changed files with 9 additions and 0 deletions
|
|
@ -87,6 +87,15 @@ resource "kubernetes_deployment" "send" {
|
|||
name = "REDIS_HOST"
|
||||
value = var.redis_host
|
||||
}
|
||||
liveness_probe {
|
||||
http_get {
|
||||
path = "/__version__"
|
||||
port = 1443
|
||||
}
|
||||
initial_delay_seconds = 10
|
||||
period_seconds = 30
|
||||
failure_threshold = 3
|
||||
}
|
||||
volume_mount {
|
||||
name = "data"
|
||||
mount_path = "/uploads"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue