diff --git a/release-charts/mixingx-edge-unit/templates/unit.yaml b/release-charts/mixingx-edge-unit/templates/unit.yaml index 0dc7f36..ee0c569 100644 --- a/release-charts/mixingx-edge-unit/templates/unit.yaml +++ b/release-charts/mixingx-edge-unit/templates/unit.yaml @@ -27,6 +27,13 @@ metadata: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: {{ $name }} spec: + # Edge backend 在启动时对 PVC data root(/var/lib/mixingx-edge/owner.lock) + # 取排他文件锁(EdgeOwnerLease),保证同一 data root 同时只有一个写者。 + # RollingUpdate 会先起新 Pod 再杀旧 Pod,新旧共享同一 PVC → 新 Pod 抢锁失败 → + # Fatal → CrashLoopBackOff → 滚动永久卡死、ArgoCD Degraded。 + # Recreate 先杀旧 Pod(释放锁)再起新 Pod(拿锁成功),与单实例有状态服务匹配。 + strategy: + type: Recreate replicas: 1 selector: matchLabels: