inital immich config

This commit is contained in:
2026-11-18 21:19:13 -05:00
parent 8ea3b8af18
commit b56538fee1
5 changed files with 69 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: immich-database
namespace: immich
spec:
instances: 1
storage:
size: 1Gi
imageName: ghcr.io/cloudnative-pg/postgresql:18.6-standard-trixie
bootstrap:
database: immich
ownder: immich
secret: immich-postgres-user
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/
+8
View File
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ns.yaml
- pvc.yaml
- cnpg.yaml
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: immich
+11
View File
@@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: immich-pvc
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1000Gi
+19
View File
@@ -0,0 +1,19 @@
controllers:
main:
containers:
main:
env:
DB_HOSTNAME: immich-database
DB_USERNAME: immich
DB_DATABASE_NAME: immich
DB_PASSWORD:
valueFrom:
secretKeyRef:
name: immich-postgres-user
key: password
immich:
persistence:
library:
existingClaim: immich-pvc
valkey:
enabled: true