fix: RWO 卷改用 Recreate 策略

This commit is contained in:
2026-10-23 10:50:35 +08:00
parent 8e25fd474b
commit 6840960ea4
+2 -4
View File
@@ -11,11 +11,9 @@ spec:
selector:
matchLabels:
app: blog
# 博客用 RWO 卷,滚动更新会出现新旧 pod 抢同一个卷而卡住,所以用 Recreate
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: Recreate
template:
metadata:
labels: