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
|
chart: immich
|
||||||
helm:
|
helm:
|
||||||
valuesObject:
|
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:
|
immich:
|
||||||
persistence:
|
persistence:
|
||||||
library:
|
library:
|
||||||
|
|
|
||||||
|
|
@ -2,26 +2,31 @@ apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
metadata:
|
metadata:
|
||||||
name: immich-database
|
name: immich-database
|
||||||
namespace: immich
|
|
||||||
spec:
|
spec:
|
||||||
instances: 1
|
instances: 1
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
|
size: 5Gi
|
||||||
storageClass: longhorn-fast
|
storageClass: longhorn-fast
|
||||||
size: 1Gi
|
monitoring:
|
||||||
|
enablePodMonitor: true
|
||||||
imageName: ghcr.io/cloudnative-pg/postgresql:18-standard-trixie
|
imageName: ghcr.io/tensorchord/cloudnative-vectorchord:15-0.3.0
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
shared_preload_libraries:
|
shared_preload_libraries:
|
||||||
- "vchord.so"
|
- "vchord.so"
|
||||||
|
bootstrap:
|
||||||
# This extension is loaded via the Database CRD at cloudnative-pg-database.yaml
|
initdb:
|
||||||
extensions:
|
database: immich
|
||||||
- name: vchord
|
owner: immich
|
||||||
image:
|
dataChecksums: true
|
||||||
reference: ghcr.io/tensorchord/vchord-scratch:pg18-v1.1.1
|
postInitApplicationSQL:
|
||||||
dynamic_library_path:
|
- ALTER USER immich WITH SUPERUSER;
|
||||||
- /usr/lib/postgresql/18/lib
|
- CREATE EXTENSION IF NOT EXISTS vchord CASCADE;
|
||||||
extension_control_path:
|
- CREATE EXTENSION IF NOT EXISTS "cube";
|
||||||
- /usr/share/postgresql/18/
|
- 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