From f37e5f32cb7f91e19d99dad26bb0381ca1ba2c9d Mon Sep 17 00:00:00 2001 From: rock Date: Mon, 26 Oct 2026 00:35:59 -0700 Subject: [PATCH] fix(paperless): use Recreate strategy for paperless-ai RWO PVC deadlock --- k8s/apps/paperless/paperless-ai.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/k8s/apps/paperless/paperless-ai.yaml b/k8s/apps/paperless/paperless-ai.yaml index dbd8f5d..474d3c4 100644 --- a/k8s/apps/paperless/paperless-ai.yaml +++ b/k8s/apps/paperless/paperless-ai.yaml @@ -9,6 +9,14 @@ metadata: app.kubernetes.io/name: paperless-ai spec: replicas: 1 + # Recreate, not RollingUpdate: paperless-ai-data is a single RWO PVC. With + # RollingUpdate the new pod tries to mount the PVC while the old pod still + # holds it -> "Multi-Attach error" / stuck Init:0/1 forever, rollout wedged + # at "1 desired, 1 ready, 1 updated, 1 unavailable". Recreate terminates the + # old pod first so the PVC detaches before the new one starts. Same pattern + # as the Forgejo gitea Deployment. + strategy: + type: Recreate selector: matchLabels: app.kubernetes.io/name: paperless-ai