From 4bd41ccf775856f318f33a5682f1561ab0f66d20 Mon Sep 17 00:00:00 2001 From: Daniel Cardozo Date: Tue, 28 Oct 2025 12:56:01 +0100 Subject: [PATCH 1/4] Added configs to enable machine learning gpu feature --- .../apps/immich/machine-learning/DaemonSet.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/cluster/apps/immich/machine-learning/DaemonSet.yaml b/cluster/apps/immich/machine-learning/DaemonSet.yaml index bde9116..f8c2c4d 100644 --- a/cluster/apps/immich/machine-learning/DaemonSet.yaml +++ b/cluster/apps/immich/machine-learning/DaemonSet.yaml @@ -4,7 +4,7 @@ metadata: name: immich-machine-learning namespace: immich annotations: - reloader.stakater.com/auto: 'true' + reloader.stakater.com/auto: "true" labels: app: immich-machine-learning spec: @@ -19,7 +19,7 @@ spec: automountServiceAccountToken: false containers: - name: immich-machine-learning - image: ghcr.io/immich-app/immich-machine-learning:v2.1.0 # {"$imagepolicy": "immich:immich-machine-learning"} + image: ghcr.io/immich-app/immich-machine-learning:v2.1.0-openvino # {"$imagepolicy": "immich:immich-machine-learning"} imagePullPolicy: IfNotPresent resources: limits: @@ -52,6 +52,14 @@ spec: name: immich-db-app key: password optional: false + # Check this ENVs maybe it works also for other ML models + - name: MACHINE_LEARNING_PRELOAD__CLIP + value: ViT-B-32__openai + - name: MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION + value: buffalo_l + # May not be needed + - name: MACHINE_LEARNING_EXECUTION_PROVIDERS + value: "OpenVINOExecutionProvider,CPUExecutionProvider" envFrom: - configMapRef: name: immich @@ -72,12 +80,12 @@ spec: securityContext: privileged: true # for intel quick sync seccompProfile: - type: 'RuntimeDefault' + type: "RuntimeDefault" volumeMounts: - name: immich-machine-learning mountPath: /cache nodeSelector: - intel.feature.node.kubernetes.io/gpu: 'true' + intel.feature.node.kubernetes.io/gpu: "true" volumes: - name: immich-machine-learning persistentVolumeClaim: -- 2.49.1 From cad3eb24cf288a8445417a8b60405b0eeb5edea1 Mon Sep 17 00:00:00 2001 From: Daniel Cardozo Date: Tue, 28 Oct 2025 20:09:56 +0100 Subject: [PATCH 2/4] removed unecessary ENVs --- cluster/apps/immich/machine-learning/DaemonSet.yaml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cluster/apps/immich/machine-learning/DaemonSet.yaml b/cluster/apps/immich/machine-learning/DaemonSet.yaml index f8c2c4d..c3838e7 100644 --- a/cluster/apps/immich/machine-learning/DaemonSet.yaml +++ b/cluster/apps/immich/machine-learning/DaemonSet.yaml @@ -52,14 +52,6 @@ spec: name: immich-db-app key: password optional: false - # Check this ENVs maybe it works also for other ML models - - name: MACHINE_LEARNING_PRELOAD__CLIP - value: ViT-B-32__openai - - name: MACHINE_LEARNING_PRELOAD__FACIAL_RECOGNITION - value: buffalo_l - # May not be needed - - name: MACHINE_LEARNING_EXECUTION_PROVIDERS - value: "OpenVINOExecutionProvider,CPUExecutionProvider" envFrom: - configMapRef: name: immich -- 2.49.1 From d67cac1a9aa6f2b014ef991fdc15d526a4b2d9e3 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Wed, 29 Oct 2025 09:08:38 +0100 Subject: [PATCH 3/4] autoformat --- cluster/apps/immich/machine-learning/DaemonSet.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cluster/apps/immich/machine-learning/DaemonSet.yaml b/cluster/apps/immich/machine-learning/DaemonSet.yaml index c3838e7..a7eb3ec 100644 --- a/cluster/apps/immich/machine-learning/DaemonSet.yaml +++ b/cluster/apps/immich/machine-learning/DaemonSet.yaml @@ -4,7 +4,7 @@ metadata: name: immich-machine-learning namespace: immich annotations: - reloader.stakater.com/auto: "true" + reloader.stakater.com/auto: 'true' labels: app: immich-machine-learning spec: @@ -72,12 +72,12 @@ spec: securityContext: privileged: true # for intel quick sync seccompProfile: - type: "RuntimeDefault" + type: 'RuntimeDefault' volumeMounts: - name: immich-machine-learning mountPath: /cache nodeSelector: - intel.feature.node.kubernetes.io/gpu: "true" + intel.feature.node.kubernetes.io/gpu: 'true' volumes: - name: immich-machine-learning persistentVolumeClaim: -- 2.49.1 From 92cb69a6661767e13c46893f758eb567db52acb6 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Wed, 29 Oct 2025 15:39:01 +0100 Subject: [PATCH 4/4] ImageAutomation fixed --- .../machine-learning/ImageAutomation/ImagePolicy.yaml | 10 +++++----- .../ImageAutomation/ImageRepository.yaml | 7 ------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/cluster/apps/immich/machine-learning/ImageAutomation/ImagePolicy.yaml b/cluster/apps/immich/machine-learning/ImageAutomation/ImagePolicy.yaml index 4cab00b..7ba5fed 100644 --- a/cluster/apps/immich/machine-learning/ImageAutomation/ImagePolicy.yaml +++ b/cluster/apps/immich/machine-learning/ImageAutomation/ImagePolicy.yaml @@ -7,9 +7,9 @@ metadata: spec: imageRepositoryRef: name: immich-machine-learning - policy: - # https://github.com/immich-app/immich/releases - semver: - range: '2.*.*' + # https://github.com/immich-app/immich/releases filterTags: - pattern: 'v.*' + pattern: '.*-openvino' + policy: + semver: + range: '2.x-0' diff --git a/cluster/apps/immich/machine-learning/ImageAutomation/ImageRepository.yaml b/cluster/apps/immich/machine-learning/ImageAutomation/ImageRepository.yaml index 01a8d2b..c1d976f 100644 --- a/cluster/apps/immich/machine-learning/ImageAutomation/ImageRepository.yaml +++ b/cluster/apps/immich/machine-learning/ImageAutomation/ImageRepository.yaml @@ -8,10 +8,3 @@ spec: # https://github.com/immich-app/immich/pkgs/container/immich-machine-learning image: ghcr.io/immich-app/immich-machine-learning interval: 24h - exclusionList: - - .*openvino - - .*cuda - - .*armnn - - pr* - - main - - main* -- 2.49.1