From 8f50aaa55590609f192a3e49c90dd1ec0c4aba01 Mon Sep 17 00:00:00 2001 From: William P Date: Thu, 22 May 2025 11:10:34 -0400 Subject: [PATCH] immich: enable GPU passthru for transcoding and AI --- 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 eda3144..b3a74e0 100644 --- a/immich/immich-ml-deployment.yaml +++ b/immich/immich-ml-deployment.yaml @@ -19,6 +19,8 @@ spec: mountPath: /cache - name: config mountPath: /config/immich-config.yaml + - name: dev-dri + mountPath: /dev/dri env: - name: DB_HOSTNAME value: "weyma-pgsql-rw.cloudnativepg.svc.cluster.local" @@ -64,6 +66,8 @@ spec: periodSeconds: 10 timeoutSeconds: 1 failureThreshold: 30 + securityContext: + privileged: true resources: limits: memory: "8Gi" @@ -77,4 +81,7 @@ spec: sizeLimit: 10Gi - name: config configMap: - name: immich-config \ No newline at end of file + name: immich-config + - name: dev-dri + hostPath: + path: /dev/dri \ No newline at end of file diff --git a/immich/immich-server_deployment.yaml b/immich/immich-server_deployment.yaml index a5c54aa..c7862bb 100644 --- a/immich/immich-server_deployment.yaml +++ b/immich/immich-server_deployment.yaml @@ -19,6 +19,8 @@ spec: mountPath: /usr/src/app/upload - name: config mountPath: /config/immich-config.yaml + - name: dev-dri + mountPath: /dev/dri env: - name: DB_HOSTNAME value: "weyma-pgsql-rw.cloudnativepg.svc.cluster.local" @@ -64,6 +66,8 @@ spec: periodSeconds: 10 timeoutSeconds: 1 failureThreshold: 30 + securityContext: + privileged: true resources: limits: memory: "8Gi" @@ -77,4 +81,7 @@ spec: claimName: immich-library - name: config configMap: - name: immich-config \ No newline at end of file + name: immich-config + - name: dev-dri + hostPath: + path: /dev/dri \ No newline at end of file