update immich + vectorchord migration

This commit is contained in:
2025-07-12 16:46:30 +02:00
parent 9da246c877
commit 3acacd98aa
3 changed files with 46 additions and 7 deletions

View File

@@ -0,0 +1,39 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: immich-postgresql
spec:
instances: 1
imageName: ghcr.io/tensorchord/cloudnative-vectorchord:16-0.3.0
bootstrap:
initdb:
owner: immich
database: immich
secret:
name: postgres-password
dataChecksums: true
postInitApplicationSQL:
- ALTER USER immich WITH SUPERUSER;
- CREATE EXTENSION IF NOT EXISTS vchord CASCADE;
- CREATE EXTENSION IF NOT EXISTS "cube";
- CREATE EXTENSION IF NOT EXISTS "earthdistance";
postgresql:
shared_preload_libraries:
- "vchord.so"
storage:
size: 5Gi
storageClass: nfs-client
monitoring:
enablePodMonitor: true
resources:
limits:
cpu: 2
memory: 1024Mi
requests:
cpu: 50m
memory: 512Mi