diff --git a/apps/nxtgauge-backend-rust/overlays/prod/companies-volume-patch.yaml b/apps/nxtgauge-backend-rust/overlays/prod/companies-volume-patch.yaml index 8904356..651448f 100644 --- a/apps/nxtgauge-backend-rust/overlays/prod/companies-volume-patch.yaml +++ b/apps/nxtgauge-backend-rust/overlays/prod/companies-volume-patch.yaml @@ -3,6 +3,15 @@ kind: Deployment metadata: name: nxtgauge-rust-companies spec: + # companies is the only service mounting nxtgauge-uploads-pvc (RWO), and + # the default RollingUpdate strategy surges a second pod before the old + # one releases the volume -> FailedAttachVolume "Multi-Attach error", + # leaving the rollout stuck and the dead ReplicaSet piling up until + # someone notices. Recreate tears down the old pod (releasing the PVC) + # before scheduling the new one, so single-replica + RWO volume rollouts + # actually complete. + strategy: + type: Recreate template: spec: volumes: