From 6fc2b1f89203c803ac9b865d8e8aca9adb5969fd Mon Sep 17 00:00:00 2001 From: William P Date: Thu, 22 May 2025 11:12:27 -0400 Subject: [PATCH] immich: add pod affinity for GPU passthru --- immich/immich-ml-deployment.yaml | 9 ++++++++- immich/immich-server_deployment.yaml | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/immich/immich-ml-deployment.yaml b/immich/immich-ml-deployment.yaml index b3a74e0..44c0032 100644 --- a/immich/immich-ml-deployment.yaml +++ b/immich/immich-ml-deployment.yaml @@ -84,4 +84,11 @@ spec: name: immich-config - name: dev-dri hostPath: - path: /dev/dri \ No newline at end of file + path: /dev/dri + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: extensions.talos.dev/i915 + operator: Exists \ No newline at end of file diff --git a/immich/immich-server_deployment.yaml b/immich/immich-server_deployment.yaml index c7862bb..0d6edcb 100644 --- a/immich/immich-server_deployment.yaml +++ b/immich/immich-server_deployment.yaml @@ -84,4 +84,11 @@ spec: name: immich-config - name: dev-dri hostPath: - path: /dev/dri \ No newline at end of file + path: /dev/dri + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: extensions.talos.dev/i915 + operator: Exists \ No newline at end of file