mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
🔧 immich
This commit is contained in:
@@ -10,7 +10,9 @@ data:
|
|||||||
ENABLE_MAPBOX: "false"
|
ENABLE_MAPBOX: "false"
|
||||||
LOG_LEVEL: verbose
|
LOG_LEVEL: verbose
|
||||||
NODE_ENV: "production"
|
NODE_ENV: "production"
|
||||||
REDIS_HOSTNAME: redis-lb.default.svc.cluster.local
|
# REDIS_HOSTNAME: redis-lb.default.svc.cluster.local
|
||||||
|
# REDIS_DBINDEX: "10"
|
||||||
|
REDIS_HOSTNAME: immich-redis.default.svc.cluster.local
|
||||||
REDIS_PORT: "6379"
|
REDIS_PORT: "6379"
|
||||||
REDIS_DBINDEX: "10"
|
REDIS_DBINDEX: "10"
|
||||||
IMMICH_WEB_URL: http://immich-web.default.svc.cluster.local:3000
|
IMMICH_WEB_URL: http://immich-web.default.svc.cluster.local:3000
|
||||||
|
@@ -8,6 +8,7 @@ resources:
|
|||||||
- ./microservices
|
- ./microservices
|
||||||
- ./machine-learning
|
- ./machine-learning
|
||||||
- ./secret.sops.yaml
|
- ./secret.sops.yaml
|
||||||
|
- ./redis
|
||||||
- ./server
|
- ./server
|
||||||
- ./volume.yaml
|
- ./volume.yaml
|
||||||
- ./web
|
- ./web
|
||||||
|
@@ -30,16 +30,13 @@ spec:
|
|||||||
- name: immich-server
|
- name: immich-server
|
||||||
values:
|
values:
|
||||||
controller:
|
controller:
|
||||||
replicas: 3
|
replicas: 2
|
||||||
strategy: RollingUpdate
|
strategy: RollingUpdate
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/auto: "true"
|
reloader.stakater.com/auto: "true"
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/immich-app/immich-machine-learning
|
repository: ghcr.io/immich-app/immich-machine-learning
|
||||||
tag: v1.50.1
|
tag: v1.50.1
|
||||||
command: /bin/sh
|
|
||||||
args:
|
|
||||||
- ./entrypoint.sh
|
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: immich-secret
|
name: immich-secret
|
||||||
@@ -55,6 +52,9 @@ spec:
|
|||||||
enabled: true
|
enabled: true
|
||||||
existingClaim: immich-nfs
|
existingClaim: immich-nfs
|
||||||
mountPath: /usr/src/app/upload
|
mountPath: /usr/src/app/upload
|
||||||
|
cache:
|
||||||
|
enabled: true
|
||||||
|
type: emptyDir
|
||||||
topologySpreadConstraints:
|
topologySpreadConstraints:
|
||||||
- maxSkew: 1
|
- maxSkew: 1
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
@@ -28,7 +28,7 @@ spec:
|
|||||||
keepHistory: false
|
keepHistory: false
|
||||||
values:
|
values:
|
||||||
controller:
|
controller:
|
||||||
replicas: 3
|
replicas: 2
|
||||||
strategy: RollingUpdate
|
strategy: RollingUpdate
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/auto: "true"
|
reloader.stakater.com/auto: "true"
|
||||||
@@ -60,7 +60,7 @@ spec:
|
|||||||
app.kubernetes.io/name: *app
|
app.kubernetes.io/name: *app
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 250Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 500Mi
|
memory: 1000Mi
|
||||||
|
46
kubernetes/apps/default/immich/app/redis/helmrelease.yaml
Normal file
46
kubernetes/apps/default/immich/app/redis/helmrelease.yaml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/helmrelease_v2beta1.json
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: immich-redis
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
interval: 15m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: app-template
|
||||||
|
version: 1.3.2
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: bjw-s
|
||||||
|
namespace: flux-system
|
||||||
|
maxHistory: 3
|
||||||
|
install:
|
||||||
|
createNamespace: true
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
upgrade:
|
||||||
|
cleanupOnFail: true
|
||||||
|
remediation:
|
||||||
|
retries: 3
|
||||||
|
uninstall:
|
||||||
|
keepHistory: false
|
||||||
|
values:
|
||||||
|
image:
|
||||||
|
repository: public.ecr.aws/docker/library/redis
|
||||||
|
tag: 7.0.9
|
||||||
|
env:
|
||||||
|
REDIS_REPLICATION_MODE: master
|
||||||
|
command: ["redis-server"]
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
http:
|
||||||
|
port: 6379
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 10Mi
|
||||||
|
limits:
|
||||||
|
memory: 100Mi
|
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ./helmrelease.yaml
|
@@ -26,15 +26,18 @@ spec:
|
|||||||
retries: 3
|
retries: 3
|
||||||
uninstall:
|
uninstall:
|
||||||
keepHistory: false
|
keepHistory: false
|
||||||
|
dependsOn:
|
||||||
|
- name: immich-redis
|
||||||
values:
|
values:
|
||||||
initContainers:
|
initContainers:
|
||||||
init-db:
|
01-init-db:
|
||||||
image: ghcr.io/onedr0p/postgres-initdb:14.7
|
image: ghcr.io/onedr0p/postgres-initdb:14.7
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: immich-secret
|
name: immich-secret
|
||||||
controller:
|
controller:
|
||||||
replicas: 3
|
replicas: 2
|
||||||
strategy: RollingUpdate
|
strategy: RollingUpdate
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/auto: "true"
|
reloader.stakater.com/auto: "true"
|
||||||
@@ -68,7 +71,7 @@ spec:
|
|||||||
app.kubernetes.io/name: *app
|
app.kubernetes.io/name: *app
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 250Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 500Mi
|
memory: 1000Mi
|
||||||
|
@@ -30,7 +30,7 @@ spec:
|
|||||||
- name: immich-server
|
- name: immich-server
|
||||||
values:
|
values:
|
||||||
controller:
|
controller:
|
||||||
replicas: 3
|
replicas: 2
|
||||||
strategy: RollingUpdate
|
strategy: RollingUpdate
|
||||||
annotations:
|
annotations:
|
||||||
reloader.stakater.com/auto: "true"
|
reloader.stakater.com/auto: "true"
|
||||||
@@ -89,7 +89,7 @@ spec:
|
|||||||
app.kubernetes.io/name: *app
|
app.kubernetes.io/name: *app
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 100m
|
||||||
memory: 100Mi
|
memory: 250Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 500Mi
|
memory: 1000Mi
|
||||||
|
Reference in New Issue
Block a user