From 86e8b8f4cebb473c4d6b982ff9b22eeb6c56d191 Mon Sep 17 00:00:00 2001 From: sync-test Date: Sat, 11 Jul 2026 02:00:57 +0530 Subject: [PATCH] fix(gitops): mount nxtgauge-uploads-pvc into nxtgauge-rust-companies for B2 fallback storage Wire the local-disk fallback path so companies service can write documents when Backblaze B2 is unavailable (B2 outage under investigation). --- .../overlays/prod/companies-volume-patch.yaml | 16 ++++++++++++++++ .../overlays/prod/kustomization.yaml | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 apps/nxtgauge-backend-rust/overlays/prod/companies-volume-patch.yaml diff --git a/apps/nxtgauge-backend-rust/overlays/prod/companies-volume-patch.yaml b/apps/nxtgauge-backend-rust/overlays/prod/companies-volume-patch.yaml new file mode 100644 index 0000000..8904356 --- /dev/null +++ b/apps/nxtgauge-backend-rust/overlays/prod/companies-volume-patch.yaml @@ -0,0 +1,16 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nxtgauge-rust-companies +spec: + template: + spec: + volumes: + - name: nxtgauge-uploads + persistentVolumeClaim: + claimName: nxtgauge-uploads-pvc + containers: + - name: companies + volumeMounts: + - name: nxtgauge-uploads + mountPath: /var/lib/nxtgauge-uploads \ No newline at end of file diff --git a/apps/nxtgauge-backend-rust/overlays/prod/kustomization.yaml b/apps/nxtgauge-backend-rust/overlays/prod/kustomization.yaml index ee92df3..aa2bedf 100644 --- a/apps/nxtgauge-backend-rust/overlays/prod/kustomization.yaml +++ b/apps/nxtgauge-backend-rust/overlays/prod/kustomization.yaml @@ -5,3 +5,7 @@ resources: - ../../base patches: - path: release-patches.yaml + - path: companies-volume-patch.yaml + target: + kind: Deployment + name: nxtgauge-rust-companies