mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
🐛 immich
This commit is contained in:
@@ -5,8 +5,8 @@ metadata:
|
|||||||
name: immich-configmap
|
name: immich-configmap
|
||||||
namespace: default
|
namespace: default
|
||||||
data:
|
data:
|
||||||
IMMICH_MACHINE_LEARNING_URL: http://immich-machine-learning.default.svc.cluster.local.:3003
|
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_SERVER_URL: http://immich-server.default.svc.cluster.local:3001
|
||||||
LOG_LEVEL: verbose
|
LOG_LEVEL: verbose
|
||||||
REDIS_DBINDEX: "15"
|
REDIS_DBINDEX: "15"
|
||||||
REDIS_HOSTNAME: redis.database.svc.cluster.local.
|
REDIS_HOSTNAME: redis.database.svc.cluster.local.
|
||||||
|
@@ -18,8 +18,6 @@ spec:
|
|||||||
namespace: flux-system
|
namespace: flux-system
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- name: immich-server
|
- name: immich-server
|
||||||
- name: redis
|
|
||||||
namespace: database
|
|
||||||
values:
|
values:
|
||||||
controllers:
|
controllers:
|
||||||
main:
|
main:
|
||||||
@@ -32,17 +30,33 @@ spec:
|
|||||||
image:
|
image:
|
||||||
repository: ghcr.io/immich-app/immich-machine-learning
|
repository: ghcr.io/immich-app/immich-machine-learning
|
||||||
tag: v1.93.3
|
tag: v1.93.3
|
||||||
envFrom:
|
env:
|
||||||
- configMapRef:
|
IMMICH_MEDIA_LOCATION: &mediaLocation /usr/src/app/upload
|
||||||
name: *configMap
|
MACHINE_LEARNING_HOST: 0.0.0.0
|
||||||
- secretRef:
|
MACHINE_LEARNING_PORT: &port 3003
|
||||||
name: *secret
|
MACHINE_LEARNING_CACHE_FOLDER: /cache
|
||||||
|
TRANSFORMERS_CACHE: /cache
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 274M
|
memory: 274M
|
||||||
limits:
|
limits:
|
||||||
memory: 3949M
|
memory: 3949M
|
||||||
|
probes:
|
||||||
|
liveness: &probes
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
httpGet:
|
||||||
|
path: /ping
|
||||||
|
port: *port
|
||||||
|
initialDelaySeconds: 0
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
readiness: *probes
|
||||||
|
startup:
|
||||||
|
enabled: false
|
||||||
pod:
|
pod:
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
securityContext:
|
securityContext:
|
||||||
@@ -61,14 +75,14 @@ spec:
|
|||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
http:
|
http:
|
||||||
port: 3003
|
port: *port
|
||||||
persistence:
|
persistence:
|
||||||
library:
|
library:
|
||||||
type: nfs
|
type: nfs
|
||||||
server: "${LOCAL_LAN_TRUENAS}"
|
server: "${LOCAL_LAN_TRUENAS}"
|
||||||
path: /mnt/storage/apps/immich
|
path: /mnt/storage/apps/immich
|
||||||
globalMounts:
|
globalMounts:
|
||||||
- path: /usr/src/app/upload
|
- path: *mediaLocation
|
||||||
cache:
|
cache:
|
||||||
type: persistentVolumeClaim
|
type: persistentVolumeClaim
|
||||||
existingClaim: immich-machine-learning-cache
|
existingClaim: immich-machine-learning-cache
|
||||||
|
@@ -29,8 +29,6 @@ spec:
|
|||||||
keepHistory: false
|
keepHistory: false
|
||||||
dependsOn:
|
dependsOn:
|
||||||
- name: immich-server
|
- name: immich-server
|
||||||
- name: redis
|
|
||||||
namespace: database
|
|
||||||
values:
|
values:
|
||||||
defaultPodOptions:
|
defaultPodOptions:
|
||||||
enableServiceLinks: false
|
enableServiceLinks: false
|
||||||
@@ -74,6 +72,22 @@ spec:
|
|||||||
limits:
|
limits:
|
||||||
gpu.intel.com/i915: 1
|
gpu.intel.com/i915: 1
|
||||||
memory: 6000Mi
|
memory: 6000Mi
|
||||||
|
pod:
|
||||||
|
enableServiceLinks: false
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 568
|
||||||
|
runAsGroup: 568
|
||||||
|
fsGroup: 568
|
||||||
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
|
topologySpreadConstraints:
|
||||||
|
- maxSkew: 1
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
whenUnsatisfiable: DoNotSchedule
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: *app
|
||||||
|
nodeSelector:
|
||||||
|
intel.feature.node.kubernetes.io/gpu: "true"
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@@ -78,6 +78,23 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 250Mi
|
memory: 250Mi
|
||||||
|
limits:
|
||||||
|
memory: 1000Mi
|
||||||
|
probes:
|
||||||
|
liveness: &probes
|
||||||
|
enabled: true
|
||||||
|
custom: true
|
||||||
|
spec:
|
||||||
|
httpGet:
|
||||||
|
path: /server-info/ping
|
||||||
|
port: 3001
|
||||||
|
initialDelaySeconds: 0
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
readiness: *probes
|
||||||
|
startup:
|
||||||
|
enabled: false
|
||||||
service:
|
service:
|
||||||
main:
|
main:
|
||||||
ports:
|
ports:
|
||||||
|
Reference in New Issue
Block a user