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