From 26c54934c590da7bee51b8beb9a2ee5b6886787b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 20 Aug 2025 01:46:24 +0200 Subject: [PATCH] Add pg cluster just for immich --- apps/immich/cluster.yaml | 30 ++++++++++++++++++++++++++++++ apps/immich/kustomization.yaml | 1 + 2 files changed, 31 insertions(+) create mode 100644 apps/immich/cluster.yaml diff --git a/apps/immich/cluster.yaml b/apps/immich/cluster.yaml new file mode 100644 index 0000000..707dcd8 --- /dev/null +++ b/apps/immich/cluster.yaml @@ -0,0 +1,30 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: immich-cluster +spec: + imageName: ghcr.io/tensorchord/cloudnative-vectorchord:17.5-0.3.0 + instances: 1 + storage: + size: 4Gi + + postgresql: + shared_preload_libraries: + - "vchord.so" +--- +apiVersion: postgresql.cnpg.io/v1 +kind: Database +metadata: + name: immich +spec: + name: immich + owner: immich + cluster: + name: immich-cluster + extensions: + - name: vector + ensure: present + - name: vchord + ensure: present + - name: earthdistance + ensure: present diff --git a/apps/immich/kustomization.yaml b/apps/immich/kustomization.yaml index 78c303f..b711900 100644 --- a/apps/immich/kustomization.yaml +++ b/apps/immich/kustomization.yaml @@ -10,3 +10,4 @@ helmCharts: resources: - pvc.yaml +- cluster.yaml