Forráskód Böngészése

Immich - Add support for hw acceleration (#1628)

* Immich - Add support for hw acceleration

* bump
Stavros Kois 1 éve
szülő
commit
5c96999bb9

+ 1 - 1
library/ix-dev/community/immich/Chart.yaml

@@ -3,7 +3,7 @@ description: Immich
 annotations:
   title: Immich
 type: application
-version: 1.0.26
+version: 1.0.27
 apiVersion: v2
 appVersion: 1.81.1
 kubeVersion: '>=1.16.0-0'

+ 9 - 0
library/ix-dev/community/immich/questions.yaml

@@ -407,3 +407,12 @@ questions:
                     - Exponent - eg. 134e6
                   default: "8Gi"
                   required: true
+
+  - variable: immichGPU
+    group: Resources Configuration
+    label: GPU Configuration
+    schema:
+      type: dict
+      $ref:
+        - "definitions/gpuConfiguration"
+      attrs: []

+ 11 - 0
library/ix-dev/community/immich/templates/_immich-microservices.tpl

@@ -45,4 +45,15 @@ workload:
       {{- include "ix.v1.common.app.redisWait" (dict  "name" "redis-wait"
                                                       "secretName" "redis-creds") | nindent 8 }}
       {{- include "immich.wait.init" (dict "url" $url) | indent 8 }}
+
+{{- with .Values.immichGPU }}
+scaleGPU:
+  {{- range $key, $value := . }}
+  - gpu:
+      {{ $key }}: {{ $value }}
+    targetSelector:
+      microservices:
+        - microservices
+  {{- end -}}
+{{- end -}}
 {{- end -}}

+ 2 - 0
library/ix-dev/community/immich/values.yaml

@@ -28,6 +28,8 @@ resources:
     cpu: 4000m
     memory: 8Gi
 
+immichGPU: {}
+
 immichConfig:
   publicLoginMessage: ''
   enableML: true