docs: improve readmes and add example

This commit is contained in:
secustor 2025-01-18 01:06:39 +01:00
parent e8efe7fcad
commit 092905c9d4
No known key found for this signature in database
6 changed files with 136 additions and 6 deletions

View file

@ -0,0 +1,27 @@
common:
config:
vectorExtension: pgvector
postgres:
host: immich-db-rw
existingSecret:
enabled: true
secretName: immich-db-immich
usernameKey: username
passwordKey: password
redis:
host: immich-redis-master
existingSecret:
enabled: true
secretName: immich-redis-access
passwordKey: password
server:
volumeMounts:
- mountPath: /usr/src/app/upload
name: uploads
volumes:
- name: uploads
hostPath:
path: /data/media/immich
type: Directory
machineLearning:
enabled: true

View file

@ -0,0 +1,32 @@
apiVersion: v1
kind: Secret
metadata:
name: immich-db-immich
type: Opaque
stringData:
username: "an-user"
password: "a-password"
---
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: immich-db
spec:
imageName: ghcr.io/cloudnative-pg/postgresql:17.2-bookworm
instances: 1
storage:
size: 15Gi
bootstrap:
initdb:
database: immich
owner: immich
secret:
name: immich-db-immich
managed:
roles:
- name: immich
createdb: true
login: true
superuser: true
passwordSecret:
name: immich-db-immich

View file

@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: immich-redis-access
type: Opaque
stringData:
password: "a-password"

View file

@ -0,0 +1,5 @@
architecture: standalone
auth:
enabled: true
existingSecret: immich-redis-access
existingSecretPasswordKey: password