immich with other psql

This commit is contained in:
2025-06-07 03:59:27 -04:00
parent a5cb322255
commit 651d1c1c74
2 changed files with 10 additions and 26 deletions

View File

@@ -4,13 +4,12 @@ metadata:
name: immich-postgres name: immich-postgres
namespace: immich namespace: immich
spec: spec:
# At the time of writing, immich is only compatible with pgvecto.rs <0.4. Latest postgres image with that version is 16.5. imageName: ghcr.io/tensorchord/cloudnative-vectorchord:17
imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.5-v0.3.0@sha256:be3f025d79aa1b747817f478e07e71be43236e14d00d8a9eb3914146245035ba
instances: 1 instances: 1
postgresql: postgresql:
shared_preload_libraries: shared_preload_libraries:
- "vectors.so" - "vchord.so"
managed: managed:
roles: roles:
@@ -24,28 +23,10 @@ spec:
owner: immich owner: immich
secret: secret:
name: immich-postgres-user name: immich-postgres-user
import:
type: microservice
databases:
- immich
source:
externalCluster: immich-postgresql
postInitSQL: postInitSQL:
- CREATE EXTENSION IF NOT EXISTS "vectors"; - CREATE EXTENSION IF NOT EXISTS "vchord" CASCADE;
- CREATE EXTENSION IF NOT EXISTS "cube" CASCADE;
- CREATE EXTENSION IF NOT EXISTS "earthdistance" CASCADE; - CREATE EXTENSION IF NOT EXISTS "earthdistance" CASCADE;
storage: storage:
size: 8Gi size: 8Gi
storageClass: longhorn storageClass: longhorn
externalClusters:
- name: immich-postgresql
connectionParameters:
# Use the correct IP or host name for the source database
host: immich-postgresql.immich.svc.cluster.local
user: immich
dbname: immich
password:
name: immich-postgres-user
key: password

View File

@@ -16,16 +16,19 @@ spec:
timeout: 5m timeout: 5m
releaseName: immich releaseName: immich
values: values:
env:
DB_HOSTNAME: "immich-postgresql"
DB_USERNAME: "immich"
DB_DATABASE_NAME: "immich"
DB_PASSWORD: "immich"
image: image:
tag: v1.118.1 tag: v1.134.0
immich: immich:
persistence: persistence:
library: library:
existingClaim: immich-data existingClaim: immich-data
postgresql:
enabled: true
redis: redis:
enabled: true enabled: true