From 7b0208408a7f96053a5e6469c5d26beb8c6b87d0 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Mon, 6 Apr 2026 09:52:37 -0500 Subject: [PATCH] Fix rolling update deadlock with pod anti-affinity maxSurge:1 + maxUnavailable:0 deadlocks with anti-affinity since there's no free physical host for the surge pod. Switch to maxSurge:0 + maxUnavailable:1 to terminate one old pod first. --- k8s/deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index ab572e46..61ab6fce 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -9,8 +9,8 @@ spec: strategy: type: RollingUpdate rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 + maxSurge: 0 + maxUnavailable: 1 selector: matchLabels: app: prop