From 650c2a6ed47f268c692b5cb2205708cdbb290d59 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 7 Mar 2026 20:39:44 +0000 Subject: [PATCH] [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. --- stacks/send/main.tf | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stacks/send/main.tf b/stacks/send/main.tf index 1991476b..79dd8d1e 100644 --- a/stacks/send/main.tf +++ b/stacks/send/main.tf @@ -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"