mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 10:22:54 +02:00
29 lines
670 B
YAML
29 lines
670 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 v0.2.1
|
|
imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:14-v0.2.1
|
|
|
|
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;
|
|
- ALTER USER immich WITH SUPERUSER;
|
|
|
|
storage:
|
|
size: 20Gi
|
|
storageClass: longhorn
|