mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
fixes
This commit is contained in:
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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:
|
||||
|
@@ -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
|
||||
|
@@ -15,16 +15,12 @@ spec:
|
||||
engineVersion: v2
|
||||
data:
|
||||
# App
|
||||
POSTGRES_DATABASE: &dbName joplin
|
||||
POSTGRES_HOST: &dbHost postgres.${SECRET_DOMAIN}.
|
||||
POSTGRES_PORT: "5432"
|
||||
POSTGRES_USER: &dbUser "{{ .POSTGRES_USER }}"
|
||||
POSTGRES_PASSWORD: &dbPass "{{ .POSTGRES_PASSWORD }}"
|
||||
POSTGRES_CONNECTION_STRING: postgresql://{{ .POSTGRES_USER }}:{{ .POSTGRES_PASSWORD }}@postgres.${SECRET_DOMAIN}:5432/joplin?sslmode=require
|
||||
# Postgres Init
|
||||
INIT_POSTGRES_DBNAME: *dbName
|
||||
INIT_POSTGRES_HOST: *dbHost
|
||||
INIT_POSTGRES_USER: *dbUser
|
||||
INIT_POSTGRES_PASS: *dbPass
|
||||
INIT_POSTGRES_DBNAME: joplin
|
||||
INIT_POSTGRES_HOST: postgres.${SECRET_DOMAIN}
|
||||
INIT_POSTGRES_USER: "{{ .POSTGRES_USER }}"
|
||||
INIT_POSTGRES_PASS: "{{ .POSTGRES_PASSWORD }}"
|
||||
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
|
||||
dataFrom:
|
||||
- extract:
|
||||
|
@@ -16,7 +16,7 @@ spec:
|
||||
data:
|
||||
# App
|
||||
LIDARR__API_KEY: "{{ .LIDARR__API_KEY }}"
|
||||
LIDARR__POSTGRES_HOST: &dbHost postgres-rw.default.svc.cluster.local
|
||||
LIDARR__POSTGRES_HOST: &dbHost postgres.${SECRET_DOMAIN}
|
||||
LIDARR__POSTGRES_PORT: "5432"
|
||||
LIDARR__POSTGRES_USER: &dbUser "{{ .LIDARR__POSTGRES_USER }}"
|
||||
LIDARR__POSTGRES_PASSWORD: &dbPass "{{ .LIDARR__POSTGRES_PASSWORD }}"
|
||||
@@ -32,7 +32,7 @@ spec:
|
||||
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: cloudnative-pg
|
||||
key: generic
|
||||
- extract:
|
||||
key: pushover
|
||||
- extract:
|
||||
|
@@ -31,7 +31,7 @@ spec:
|
||||
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: cloudnative-pg
|
||||
key: generic
|
||||
- extract:
|
||||
key: pushover
|
||||
- extract:
|
||||
|
@@ -12,7 +12,6 @@ spec:
|
||||
app.kubernetes.io/name: *app
|
||||
dependsOn:
|
||||
- name: external-secrets-stores
|
||||
- name: rook-ceph-cluster
|
||||
path: ./kubernetes/apps/default/prowlarr/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
@@ -25,4 +24,3 @@ spec:
|
||||
postBuild:
|
||||
substitute:
|
||||
APP: *app
|
||||
VOLSYNC_CAPACITY: 2Gi
|
||||
|
@@ -25,3 +25,4 @@ spec:
|
||||
postBuild:
|
||||
substitute:
|
||||
APP: *app
|
||||
VOLSYNC_CAPACITY: 2Gi
|
||||
|
@@ -15,6 +15,7 @@ spec:
|
||||
data:
|
||||
# App
|
||||
DB_ENGINE: django.db.backends.postgresql_psycopg2
|
||||
DB_OPTIONS: '{"sslmode":"require"}'
|
||||
SECRET_KEY: "{{ .TANDOOR_SECRET_KEY }}"
|
||||
POSTGRES_HOST: &dbHost postgres.${SECRET_DOMAIN}
|
||||
POSTGRES_PORT: "5432"
|
||||
|
@@ -71,7 +71,7 @@ spec:
|
||||
DEBUG: "0"
|
||||
ALLOWED_HOSTS: "*"
|
||||
GUNICORN_MEDIA: "0"
|
||||
TIMEZONE: ${TIMEZONE}
|
||||
TZ: ${TIMEZONE}
|
||||
TANDOOR_PORT: &port 8888
|
||||
FRACTION_PREF_DEFAULT: "0"
|
||||
COMMENT_PREF_DEFAULT: "1"
|
||||
@@ -169,7 +169,7 @@ spec:
|
||||
postRenderers:
|
||||
- kustomize:
|
||||
patchesStrategicMerge:
|
||||
- kind: StatefulSet
|
||||
- kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: tandoor
|
||||
@@ -178,7 +178,7 @@ spec:
|
||||
template:
|
||||
spec:
|
||||
initContainers:
|
||||
- name: 02-init-migrate
|
||||
- name: migrations
|
||||
volumeMounts:
|
||||
- name: django-js-reverse
|
||||
mountPath: /opt/recipes/cookbook/static/django_js_reverse
|
||||
|
Reference in New Issue
Block a user