From 664870f8c466ab248dbf1bda1ac33859a6652263 Mon Sep 17 00:00:00 2001 From: ab Date: Mon, 12 May 2025 16:30:32 +0000 Subject: [PATCH] Update k8s/apps/immich/deployments.yaml --- k8s/apps/immich/deployments.yaml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/k8s/apps/immich/deployments.yaml b/k8s/apps/immich/deployments.yaml index 2695705..3f0836b 100644 --- a/k8s/apps/immich/deployments.yaml +++ b/k8s/apps/immich/deployments.yaml @@ -62,7 +62,7 @@ kind: Deployment metadata: name: immich-machine-learning spec: - replicas: 15 + replicas: 5 selector: matchLabels: app: immich-ml @@ -71,15 +71,16 @@ spec: labels: app: immich-ml spec: - topologySpreadConstraints: - - maxSkew: 2 - topologyKey: kubernetes.io/hostname - whenUnsatisfiable: DoNotSchedule - labelSelector: - matchLabels: - app: immich-ml affinity: nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - nas.homenet + - home.homenet preferredDuringSchedulingIgnoredDuringExecution: - weight: 30 preference: @@ -95,6 +96,13 @@ spec: operator: In values: - home.homenet + topologySpreadConstraints: + - maxSkew: 2 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: DoNotSchedule + labelSelector: + matchLabels: + app: immich-ml containers: - name: immich-ml image: ghcr.io/immich-app/immich-machine-learning:release @@ -105,10 +113,10 @@ spec: resources: requests: cpu: "0.5" - memory: "1Gi" - limits: - cpu: "1" memory: "2Gi" + limits: + cpu: "2" + memory: "4Gi" volumeMounts: - mountPath: /cache name: model-cache