From 28f2ab170617f38933fd33c34ae3fcd16287fe23 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Tue, 4 Jun 2024 21:58:38 +0300 Subject: [PATCH] immich-env-vars (#2532) --- library/ix-dev/community/immich/Chart.yaml | 2 +- .../ix-dev/community/immich/questions.yaml | 25 +++++++++++++++++++ .../immich/templates/_configuration.tpl | 8 ++++-- library/ix-dev/community/immich/values.yaml | 4 ++- 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/library/ix-dev/community/immich/Chart.yaml b/library/ix-dev/community/immich/Chart.yaml index 5e08658772..a24d782ad5 100644 --- a/library/ix-dev/community/immich/Chart.yaml +++ b/library/ix-dev/community/immich/Chart.yaml @@ -4,7 +4,7 @@ description: Immich is a self-hosted photo and video backup solution directly fr annotations: title: Immich type: application -version: 3.0.24 +version: 3.0.25 apiVersion: v2 appVersion: 1.105.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 c32a47499c..f088a8cd1f 100644 --- a/library/ix-dev/community/immich/questions.yaml +++ b/library/ix-dev/community/immich/questions.yaml @@ -56,6 +56,31 @@ questions: description: Cuda Machine Learning Image - value: mlOpenvinoImage description: Openvino Machine Learning Image + - variable: logLevel + label: Log Level + description: | + The log level to use for Machine Learning. + schema: + type: string + default: log + enum: + - value: verbose + description: Verbose + - value: debug + description: Debug + - value: log + description: Log + - value: warn + description: Warn + - value: error + description: Error + - variable: huggingFaceEndpoint + label: Hugging Face Endpoint (Optional) + description: | + The Hugging Face endpoint to use for Machine Learning. + schema: + type: string + default: "" - variable: immichNetwork label: "" group: Network Configuration diff --git a/library/ix-dev/community/immich/templates/_configuration.tpl b/library/ix-dev/community/immich/templates/_configuration.tpl index 8d2c9206b2..49ef1c6ae8 100644 --- a/library/ix-dev/community/immich/templates/_configuration.tpl +++ b/library/ix-dev/community/immich/templates/_configuration.tpl @@ -65,14 +65,14 @@ configmap: server-config: enabled: true data: - LOG_LEVEL: log + LOG_LEVEL: {{ .Values.immichConfig.logLevel | default "log" }} NODE_ENV: production SERVER_PORT: {{ .Values.immichNetwork.webuiPort | quote }} micro-config: enabled: true data: - LOG_LEVEL: log + LOG_LEVEL: {{ .Values.immichConfig.logLevel | default "log" }} NODE_ENV: production MICROSERVICES_PORT: {{ .Values.immichNetwork.microservicesPort | quote }} REVERSE_GEOCODING_DUMP_DIRECTORY: /microcache @@ -82,6 +82,10 @@ configmap: enabled: true data: NODE_ENV: production + LOG_LEVEL: {{ .Values.immichConfig.logLevel | default "log" }} + {{- if .Values.immichConfig.huggingFaceEndpoint }} + HF_ENDPOINT: {{ .Values.immichConfig.huggingFaceEndpoint }} + {{- end }} MACHINE_LEARNING_PORT: {{ .Values.immichNetwork.machinelearningPort | quote }} MACHINE_LEARNING_CACHE_FOLDER: /mlcache TRANSFORMERS_CACHE: /mlcache diff --git a/library/ix-dev/community/immich/values.yaml b/library/ix-dev/community/immich/values.yaml index 8dcdc6f07f..e42d9d67af 100644 --- a/library/ix-dev/community/immich/values.yaml +++ b/library/ix-dev/community/immich/values.yaml @@ -34,9 +34,11 @@ immichGPUContainers: machinelearning: true immichConfig: - publicLoginMessage: '' + publicLoginMessage: "" enableML: true mlImageType: mlImage + logLevel: log + huggingFaceEndpoint: "" immichNetwork: webuiPort: 30041