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.
This commit is contained in:
Viktor Barzin 2026-03-16 22:55:15 +00:00
parent 6cc4d526f1
commit c31ba2c50c

View file

@ -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"