inital immich config
This commit is contained in:
@@ -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/
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ns.yaml
|
||||
- pvc.yaml
|
||||
- cnpg.yaml
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: immich
|
||||
@@ -0,0 +1,11 @@
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: immich-pvc
|
||||
spec:
|
||||
storageClassName: nfs-client
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 1000Gi
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user