mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
♻️ immich v1.93
This commit is contained in:
@@ -5,16 +5,13 @@ metadata:
|
||||
name: immich-configmap
|
||||
namespace: default
|
||||
data:
|
||||
IMMICH_MACHINE_LEARNING_URL: http://immich-machine-learning.default.svc.cluster.local:3003
|
||||
IMMICH_SERVER_URL: http://immich-server.default.svc.cluster.local:3001
|
||||
IMMICH_MACHINE_LEARNING_URL: http://immich-machine-learning.default.svc.cluster.local.:3003
|
||||
IMMICH_SERVER_URL: http://immich-server.default.svc.cluster.local.:3001
|
||||
LOG_LEVEL: verbose
|
||||
# REDIS_HOSTNAME: redis-master.default.svc.cluster.local.
|
||||
# REDIS_DBINDEX: "15"
|
||||
REDIS_HOSTNAME: immich-redis.default.svc.cluster.local
|
||||
REDIS_DBINDEX: "15"
|
||||
REDIS_HOSTNAME: redis.database.svc.cluster.local.
|
||||
REDIS_PORT: "6379"
|
||||
TRANSFORMERS_CACHE: /usr/src/app/.transformers_cache
|
||||
TYPESENSE_DATA_DIR: /config
|
||||
TYPESENSE_HOST: immich-typesense.default.svc.cluster.local.
|
||||
# Below are deprecated and can only be set in the Immich Admin settings
|
||||
# OAUTH_ENABLED: "true"
|
||||
# OAUTH_ISSUER_URL: https://auth.${SECRET_CLUSTER_DOMAIN}/.well-known/openid-configuration
|
||||
|
@@ -15,17 +15,21 @@ spec:
|
||||
engineVersion: v2
|
||||
data:
|
||||
# App
|
||||
DB_URL: postgresql://{{ .POSTGRES_USER }}:{{ .POSTGRES_PASS }}@postgres.${SECRET_DOMAIN}:5432/immich?sslmode=require
|
||||
DB_DATABASE_NAME: &dbName immich
|
||||
DB_HOSTNAME: &dbHost postgres16-rw.database.svc.cluster.local.
|
||||
DB_USERNAME: &dbUser "{{ .POSTGRES_USER }}"
|
||||
DB_PASSWORD: &dbPass "{{ .POSTGRES_PASS }}"
|
||||
DB_PORT: "5432"
|
||||
JWT_SECRET: "{{ .IMMICH_JWT_SECRET }}"
|
||||
TYPESENSE_API_KEY: "{{ .IMMICH_TYPESENSE_API_KEY }}"
|
||||
# Postgres Init
|
||||
INIT_POSTGRES_DBNAME: immich
|
||||
INIT_POSTGRES_HOST: postgres.${SECRET_DOMAIN}
|
||||
INIT_POSTGRES_USER: "{{ .POSTGRES_USER }}"
|
||||
INIT_POSTGRES_PASS: "{{ .POSTGRES_PASS }}"
|
||||
INIT_POSTGRES_DBNAME: *dbName
|
||||
INIT_POSTGRES_HOST: *dbHost
|
||||
INIT_POSTGRES_USER: *dbUser
|
||||
INIT_POSTGRES_PASS: *dbPass
|
||||
INIT_POSTGRES_SUPER_PASS: "{{ .POSTGRES_SUPER_PASS }}"
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: generic
|
||||
key: cloudnative-pg
|
||||
- extract:
|
||||
key: immich
|
||||
|
@@ -9,7 +9,6 @@ resources:
|
||||
- ./microservices
|
||||
- ./machine-learning
|
||||
- ./server
|
||||
- ./typesense
|
||||
- ./volumes.yaml
|
||||
- ../../../../templates/gatus/external
|
||||
- ../../../../templates/volsync
|
||||
|
@@ -18,7 +18,7 @@ spec:
|
||||
namespace: flux-system
|
||||
dependsOn:
|
||||
- name: immich-server
|
||||
- name: immich-redis
|
||||
- name: redis
|
||||
values:
|
||||
controllers:
|
||||
main:
|
||||
@@ -30,7 +30,7 @@ spec:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/immich-app/immich-machine-learning
|
||||
tag: v1.90.2@sha256:db29ac9e6c1205912df176b81c5c605a98ee18220e438b17151e84c5c5becfa1
|
||||
tag: v1.93.3
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: *configMap
|
||||
|
@@ -28,9 +28,8 @@ spec:
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
dependsOn:
|
||||
- name: immich-redis
|
||||
- name: immich-server
|
||||
- name: immich-typesense
|
||||
- name: redis
|
||||
values:
|
||||
defaultPodOptions:
|
||||
enableServiceLinks: false
|
||||
@@ -58,7 +57,7 @@ spec:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/immich-app/immich-server
|
||||
tag: v1.90.2@sha256:3e68be128c705f4e1c565a38f0a70c7008504f0acaaf122dc13cc6716a69a067
|
||||
tag: v1.93.3
|
||||
args:
|
||||
- start-microservices.sh
|
||||
envFrom:
|
||||
|
@@ -28,8 +28,7 @@ spec:
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
dependsOn:
|
||||
- name: immich-typesense
|
||||
- name: immich-redis
|
||||
- name: redis
|
||||
values:
|
||||
defaultPodOptions:
|
||||
enableServiceLinks: false
|
||||
@@ -66,7 +65,7 @@ spec:
|
||||
main:
|
||||
image:
|
||||
repository: ghcr.io/immich-app/immich-server
|
||||
tag: v1.90.2@sha256:3e68be128c705f4e1c565a38f0a70c7008504f0acaaf122dc13cc6716a69a067
|
||||
tag: v1.93.3
|
||||
args: ["start-server.sh"]
|
||||
envFrom: *envFrom
|
||||
env:
|
||||
|
@@ -1,88 +0,0 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: immich-typesense
|
||||
namespace: default
|
||||
spec:
|
||||
interval: 30m
|
||||
chart:
|
||||
spec:
|
||||
chart: app-template
|
||||
version: 2.4.0
|
||||
interval: 30m
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: bjw-s
|
||||
namespace: flux-system
|
||||
maxHistory: 2
|
||||
install:
|
||||
createNamespace: true
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
cleanupOnFail: true
|
||||
remediation:
|
||||
retries: 3
|
||||
uninstall:
|
||||
keepHistory: false
|
||||
values:
|
||||
defaultPodOptions:
|
||||
enableServiceLinks: false
|
||||
controllers:
|
||||
main:
|
||||
strategy: RollingUpdate
|
||||
annotations:
|
||||
configmap.reloader.stakater.com/reload: &configMap immich-configmap
|
||||
secret.reloader.stakater.com/reload: &secret immich-secret
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: docker.io/typesense/typesense
|
||||
tag: 0.25.2@sha256:1ddbb28a52b0b8be31237ec718df1c9bc895c5626b26c10fa3f340f684e81488
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: *configMap
|
||||
- secretRef:
|
||||
name: *secret
|
||||
probes:
|
||||
liveness: &probes
|
||||
enabled: true
|
||||
custom: true
|
||||
spec:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: &port 8108
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 3
|
||||
readiness: *probes
|
||||
startup:
|
||||
enabled: true
|
||||
custom: true
|
||||
spec:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8108
|
||||
failureThreshold: 30
|
||||
periodSeconds: 5
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 1
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 250Mi
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
http:
|
||||
port: *port
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
type: persistentVolumeClaim
|
||||
existingClaim: immich
|
||||
globalMounts:
|
||||
- path: /config
|
@@ -1,6 +0,0 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
@@ -26,28 +26,3 @@ spec:
|
||||
APP: *app
|
||||
GATUS_SUBDOMAIN: photos
|
||||
VOLSYNC_CAPACITY: 2Gi
|
||||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: immich-redis
|
||||
namespace: flux-system
|
||||
spec:
|
||||
targetNamespace: default
|
||||
commonMetadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: &app immich
|
||||
path: ./kubernetes/apps/default/immich/redis
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: home-ops-kubernetes
|
||||
wait: false
|
||||
interval: 30m
|
||||
retryInterval: 1m
|
||||
timeout: 5m
|
||||
postBuild:
|
||||
substitute:
|
||||
APP: *app
|
||||
VOLSYNC_CAPACITY: 2Gi
|
||||
|
@@ -1,43 +0,0 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: immich-redis
|
||||
namespace: default
|
||||
spec:
|
||||
interval: 30m
|
||||
chart:
|
||||
spec:
|
||||
chart: app-template
|
||||
version: 2.4.0
|
||||
interval: 30m
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: bjw-s
|
||||
namespace: flux-system
|
||||
values:
|
||||
controllers:
|
||||
main:
|
||||
strategy: RollingUpdate
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: public.ecr.aws/docker/library/redis
|
||||
tag: 7.2.4@sha256:b5ddcd52d425a8e354696c022f392fe45fca928f68d6289e6bb4a709c3a74668
|
||||
env:
|
||||
REDIS_REPLICATION_MODE: master
|
||||
resources:
|
||||
requests:
|
||||
cpu: 5m
|
||||
memory: 256M
|
||||
limits:
|
||||
memory: 256M
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
http:
|
||||
enabled: false
|
||||
redis:
|
||||
enabled: true
|
||||
port: 6379
|
@@ -1,10 +0,0 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: default
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
||||
commonLabels:
|
||||
app.kubernetes.io/name: immich-redis
|
||||
app.kubernetes.io/instance: immich
|
Reference in New Issue
Block a user