From 4ea0e2ae4356bf9e937947b8dbfbd6582b224c1d Mon Sep 17 00:00:00 2001 From: sync-test Date: Tue, 21 Jul 2026 06:33:21 +0530 Subject: [PATCH] fix(ollama): use Recreate deployment strategy to avoid RWO PVC mount deadlock on rollout --- apps/ollama/base/deployment.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/ollama/base/deployment.yaml b/apps/ollama/base/deployment.yaml index f1c8b37..efec960 100644 --- a/apps/ollama/base/deployment.yaml +++ b/apps/ollama/base/deployment.yaml @@ -7,6 +7,14 @@ metadata: app: ollama spec: replicas: 1 + # Default RollingUpdate deadlocks here: the new pod can't mount the + # ollama-models PVC (ReadWriteOnce) until the old pod releases it, but + # the old pod isn't terminated until the new one is Ready — a rollout + # that discovered this the hard way (stuck ContainerCreating). Recreate + # accepts a brief gap in availability in exchange for actually rolling + # out. + strategy: + type: Recreate selector: matchLabels: app: ollama