This commit is contained in:
auricom
2024-01-24 02:13:51 +01:00
parent 3f34557db7
commit 72425b2b55
12 changed files with 27 additions and 59 deletions

View File

@@ -15,18 +15,14 @@ spec:
engineVersion: v2
data:
# App
DB_DATABASE_NAME: &dbName immich
DB_HOSTNAME: &dbHost postgres.${SECRET_DOMAIN}
DB_USERNAME: &dbUser "{{ .POSTGRES_USER }}"
DB_PASSWORD: &dbPass "{{ .POSTGRES_PASS }}"
DB_PORT: "5432"
DB_URL: postgresql://{{ .POSTGRES_USER }}:{{ .POSTGRES_PASS }}@postgres.${SECRET_DOMAIN}:5432/immich?sslmode=require
JWT_SECRET: "{{ .IMMICH_JWT_SECRET }}"
TYPESENSE_API_KEY: "{{ .IMMICH_TYPESENSE_API_KEY }}"
# Postgres Init
INIT_POSTGRES_DBNAME: *dbName
INIT_POSTGRES_HOST: *dbHost
INIT_POSTGRES_USER: *dbUser
INIT_POSTGRES_PASS: *dbPass
INIT_POSTGRES_DBNAME: immich
INIT_POSTGRES_HOST: postgres.${SECRET_DOMAIN}
INIT_POSTGRES_USER: "{{ .POSTGRES_USER }}"
INIT_POSTGRES_PASS: "{{ .POSTGRES_PASS }}"
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
dataFrom:
- extract:

View File

@@ -63,8 +63,9 @@ spec:
port: 3003
persistence:
library:
type: persistentVolumeClaim
existingClaim: immich-nfs
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/apps/immich
globalMounts:
- path: /usr/src/app/upload
cache:

View File

@@ -79,7 +79,9 @@ spec:
enabled: false
persistence:
library:
existingClaim: immich-nfs
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/apps/immich
globalMounts:
- path: /usr/src/app/upload
geocoding-dump:

View File

@@ -112,7 +112,9 @@ spec:
globalMounts:
- path: /config
library:
existingClaim: immich-nfs
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/apps/immich
globalMounts:
- path: *mediaLocation
geocoding-dump:

View File

@@ -1,34 +1,5 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: immich-nfs
spec:
storageClassName: immich-nfs
capacity:
storage: 1Mi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
nfs:
server: ${LOCAL_LAN_TRUENAS}
path: /mnt/storage/apps/immich
mountOptions: ["nfsvers=4.2", "nconnect=8", "hard", "noatime"]
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: immich-nfs
namespace: default
spec:
accessModes:
- ReadWriteMany
storageClassName: immich-nfs
resources:
requests:
storage: 1Mi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: immich-machine-learning-cache