diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 22:26:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 22:26:29 +0300 |
| commit | 0f35cb9d488e7f4ea66c59bb65444104156f9edf (patch) | |
| tree | 661f5e2b213557427e172d68d6e2457c4778f6d4 /f3s | |
| parent | ed928f41bb65464d75bb1b6dafc70996a20f432a (diff) | |
Replace old wait-for-nfs with standard sentinel initContainer in immich-postgres for u5
Diffstat (limited to 'f3s')
| -rw-r--r-- | f3s/immich/helm-chart/templates/postgres.yaml | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/f3s/immich/helm-chart/templates/postgres.yaml b/f3s/immich/helm-chart/templates/postgres.yaml index 49f4a24..61221d5 100644 --- a/f3s/immich/helm-chart/templates/postgres.yaml +++ b/f3s/immich/helm-chart/templates/postgres.yaml @@ -24,21 +24,21 @@ spec: app: immich-postgres spec: initContainers: - - name: wait-for-nfs - image: busybox:1.37 + - name: nfs-check-data + image: busybox:stable command: - - /bin/sh + - sh - -c - | - echo "Waiting for NFS mount..." - until [ -f /nfs-check/k3svolumes.DO_NOT_REMOVE ]; do - echo "NFS not mounted yet, waiting..." - sleep 5 - done - echo "NFS mount detected" + test -f /mnt/.nfs-sentinel || ( + echo "ERROR: NFS sentinel missing at /mnt/.nfs-sentinel" + echo "refusing to start; node likely has NFS unmounted" + echo "pod would otherwise bind-mount the local-XFS shadow" + exit 1 + ) volumeMounts: - - name: nfs-check - mountPath: /nfs-check + - name: postgres-data + mountPath: /mnt readOnly: true containers: - name: postgres @@ -88,10 +88,6 @@ spec: - name: postgres-data persistentVolumeClaim: claimName: immich-postgres-pvc - - name: nfs-check - hostPath: - path: /data/nfs/k3svolumes - type: Directory --- apiVersion: v1 kind: Service |
