Files
k8scd/immich/postgresql-cluster.yaml
T
2026-01-21 00:22:00 +01:00

28 lines
619 B
YAML

apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: immich-postgres
namespace: immich
spec:
instances: 1
# Use TensorChord's CNPG-compatible image with pgvecto.rs
imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:14-v0.4.0
postgresql:
shared_preload_libraries:
- "vectors.so"
bootstrap:
initdb:
database: immich
owner: immich
postInitSQL:
- CREATE EXTENSION IF NOT EXISTS vectors;
- CREATE EXTENSION IF NOT EXISTS cube;
- CREATE EXTENSION IF NOT EXISTS earthdistance CASCADE;
storage:
size: 20Gi
storageClass: longhorn