This commit is contained in:
parent
3f19c7ebff
commit
f30fdd5257
2 changed files with 50 additions and 16 deletions
|
|
@ -14,6 +14,35 @@ spec:
|
|||
chart: immich
|
||||
helm:
|
||||
valuesObject:
|
||||
controllers:
|
||||
main:
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
tag: v2.6.3
|
||||
env:
|
||||
DB_HOSTNAME: immich-database-rw
|
||||
DB_VECTOR_EXTENSION: vectorchord
|
||||
DB_HOSTNAME:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: immich-postgresql-app
|
||||
key: host
|
||||
DB_USERNAME:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: immich-postgresql-app
|
||||
key: username
|
||||
DB_DATABASE_NAME:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: immich-postgresql-app
|
||||
key: dbname
|
||||
DB_PASSWORD:
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: immich-postgresql-app
|
||||
key: password
|
||||
immich:
|
||||
persistence:
|
||||
library:
|
||||
|
|
|
|||
|
|
@ -2,26 +2,31 @@ apiVersion: postgresql.cnpg.io/v1
|
|||
kind: Cluster
|
||||
metadata:
|
||||
name: immich-database
|
||||
namespace: immich
|
||||
spec:
|
||||
instances: 1
|
||||
|
||||
storage:
|
||||
size: 5Gi
|
||||
storageClass: longhorn-fast
|
||||
size: 1Gi
|
||||
|
||||
imageName: ghcr.io/cloudnative-pg/postgresql:18-standard-trixie
|
||||
|
||||
monitoring:
|
||||
enablePodMonitor: true
|
||||
imageName: ghcr.io/tensorchord/cloudnative-vectorchord:15-0.3.0
|
||||
postgresql:
|
||||
shared_preload_libraries:
|
||||
- "vchord.so"
|
||||
|
||||
# This extension is loaded via the Database CRD at cloudnative-pg-database.yaml
|
||||
extensions:
|
||||
- name: vchord
|
||||
image:
|
||||
reference: ghcr.io/tensorchord/vchord-scratch:pg18-v1.1.1
|
||||
dynamic_library_path:
|
||||
- /usr/lib/postgresql/18/lib
|
||||
extension_control_path:
|
||||
- /usr/share/postgresql/18/
|
||||
bootstrap:
|
||||
initdb:
|
||||
database: immich
|
||||
owner: immich
|
||||
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";
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: 1024Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 512Mi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue