From 6840960ea464d4b28fa3b845fc5ebef2e6eee827 Mon Sep 17 00:00:00 2001 From: gitea Date: Fri, 23 Oct 2026 10:50:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20RWO=20=E5=8D=B7=E6=94=B9=E7=94=A8=20Recr?= =?UTF-8?q?eate=20=E7=AD=96=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- k8s/deployment.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index fc5faca..eae3493 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -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: