Skip to content

Commit 4917cf4

Browse files
committed
fix: use Recreate strategy for RWO PVC compatibility
1 parent a91368d commit 4917cf4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

k8s/deployment.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ spec:
1111
selector:
1212
matchLabels:
1313
app.kubernetes.io/name: light-object-detect
14+
# Recreate strategy required: the HuggingFace cache PVC is
15+
# ReadWriteOnce, so only one pod can mount it at a time.
1416
strategy:
15-
type: RollingUpdate
16-
rollingUpdate:
17-
maxSurge: 1
18-
maxUnavailable: 0
17+
type: Recreate
1918
template:
2019
metadata:
2120
labels:

0 commit comments

Comments
 (0)