From 5c96999bb9511ca94d38c5e6b23f60653ebdc1b4 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Tue, 10 Oct 2023 16:18:22 +0300 Subject: [PATCH] Immich - Add support for hw acceleration (#1628) * Immich - Add support for hw acceleration * bump --- library/ix-dev/community/immich/Chart.yaml | 2 +- library/ix-dev/community/immich/questions.yaml | 9 +++++++++ .../immich/templates/_immich-microservices.tpl | 11 +++++++++++ library/ix-dev/community/immich/values.yaml | 2 ++ 4 files changed, 23 insertions(+), 1 deletion(-) diff --git a/library/ix-dev/community/immich/Chart.yaml b/library/ix-dev/community/immich/Chart.yaml index cbf293adcc..2d5b63dc2a 100644 --- a/library/ix-dev/community/immich/Chart.yaml +++ b/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' diff --git a/library/ix-dev/community/immich/questions.yaml b/library/ix-dev/community/immich/questions.yaml index a8035bb981..1d2776aec2 100644 --- a/library/ix-dev/community/immich/questions.yaml +++ b/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: [] diff --git a/library/ix-dev/community/immich/templates/_immich-microservices.tpl b/library/ix-dev/community/immich/templates/_immich-microservices.tpl index 2db364b5f5..4a351f0f97 100644 --- a/library/ix-dev/community/immich/templates/_immich-microservices.tpl +++ b/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 -}} diff --git a/library/ix-dev/community/immich/values.yaml b/library/ix-dev/community/immich/values.yaml index 8d82499bd4..ad1726f56f 100644 --- a/library/ix-dev/community/immich/values.yaml +++ b/library/ix-dev/community/immich/values.yaml @@ -28,6 +28,8 @@ resources: cpu: 4000m memory: 8Gi +immichGPU: {} + immichConfig: publicLoginMessage: '' enableML: true