fix(paperless): use Recreate strategy for paperless-ai RWO PVC deadlock
This commit is contained in:
@@ -9,6 +9,14 @@ metadata:
|
|||||||
app.kubernetes.io/name: paperless-ai
|
app.kubernetes.io/name: paperless-ai
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
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:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: paperless-ai
|
app.kubernetes.io/name: paperless-ai
|
||||||
|
|||||||
Reference in New Issue
Block a user