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: