From c31ba2c50c360b80c13b3b12a72cf1cc96a721e9 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Mon, 16 Mar 2026 22:55:15 +0000 Subject: [PATCH] k8s-portal: use Recreate strategy, limit revision history to 3 Prevents stale pods serving old content during rapid successive deploys. With 1 replica + RollingUpdate, old and new pods briefly coexist. --- stacks/platform/modules/k8s-portal/main.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stacks/platform/modules/k8s-portal/main.tf b/stacks/platform/modules/k8s-portal/main.tf index 15d1ab08..53c375d6 100644 --- a/stacks/platform/modules/k8s-portal/main.tf +++ b/stacks/platform/modules/k8s-portal/main.tf @@ -43,6 +43,10 @@ resource "kubernetes_deployment" "k8s_portal" { spec { replicas = 1 + strategy { + type = "Recreate" + } + revision_history_limit = 3 selector { match_labels = { app = "k8s-portal"