diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-22 11:27:14 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-22 11:27:14 +0200 |
| commit | 4699b6a5833cf32c6817dd9800437e53223ad5e6 (patch) | |
| tree | 2f7385addb7eebc5177442ae4b07902e21b6c383 /f3s/immich/helm-chart/templates | |
| parent | 849e67bd18bf9bdf73bb1f9d7038220e647fb233 (diff) | |
immich: add NFS mount check init container to postgres
Amp-Thread-ID: https://ampcode.com/threads/T-019d14d5-4dbf-71a7-a619-d9c5afed3f7c
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'f3s/immich/helm-chart/templates')
| -rw-r--r-- | f3s/immich/helm-chart/templates/postgres.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/f3s/immich/helm-chart/templates/postgres.yaml b/f3s/immich/helm-chart/templates/postgres.yaml index 2b49767..9a33ed1 100644 --- a/f3s/immich/helm-chart/templates/postgres.yaml +++ b/f3s/immich/helm-chart/templates/postgres.yaml @@ -15,6 +15,23 @@ spec: labels: app: immich-postgres spec: + initContainers: + - name: wait-for-nfs + image: busybox:1.37 + command: + - /bin/sh + - -c + - | + echo "Waiting for NFS mount..." + until [ -f /nfs-check/nfs.DO_NOT_REMOVE ]; do + echo "NFS not mounted yet, waiting..." + sleep 5 + done + echo "NFS mount detected" + volumeMounts: + - name: nfs-check + mountPath: /nfs-check + readOnly: true containers: - name: postgres image: tensorchord/pgvecto-rs:pg16-v0.3.0 @@ -57,6 +74,10 @@ spec: - name: postgres-data persistentVolumeClaim: claimName: immich-postgres-pvc + - name: nfs-check + hostPath: + path: /data/nfs/k3svolumes + type: Directory --- apiVersion: v1 kind: Service |
