From 40146b69d8a4df4b1ccd7cd7337f28bfca653d7d Mon Sep 17 00:00:00 2001 From: Remy Moll <me@moll.re> Date: Sun, 15 Sep 2024 19:18:32 +0200 Subject: [PATCH] better immich postgres-vectors handling --- apps/immich/postgres.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/immich/postgres.yaml b/apps/immich/postgres.yaml index fe82b57..ce58d8e 100644 --- a/apps/immich/postgres.yaml +++ b/apps/immich/postgres.yaml @@ -12,19 +12,23 @@ spec: secret: name: postgres-password + # Enable the VECTORS extension + postInitSQL: + - CREATE EXTENSION IF NOT EXISTS "vectors"; + postgresql: shared_preload_libraries: - "vectors.so" - # Persistent storage configuration + # Persistent storage configuration storage: - size: 1Gi + size: 2Gi pvcTemplate: accessModes: - ReadWriteOnce resources: requests: - storage: 1Gi + storage: 2Gi storageClassName: nfs-client volumeMode: Filesystem monitoring: