feat: migrate immich to k8s

This commit is contained in:
cătălin 2026-08-03 21:06:07 +02:00
commit 3d3ea948db
No known key found for this signature in database
21 changed files with 1044 additions and 100 deletions

View file

@ -0,0 +1,22 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "immich.fullname" . }}
labels:
{{- include "immich.labels" . | nindent 4 }}
data:
TZ: {{ .Values.general.tz | quote }}
IMMICH_PORT: {{ .Values.service.port | quote }}
IMMICH_MACHINE_LEARNING_URL: {{ printf "http://%s-machine-learning:3003" (include "immich.fullname" .) | quote }}
{{- range $key, $value := .Values.db }}
{{- if and (ne $key "password") $value }}
{{ $keyName := printf "DB_%s" (upper $key) }}
{{ $keyName }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- range $key, $value := .Values.redis }}
{{- if and (ne $key "password") (ne $key "username") $value }}
{{ $keyName := printf "REDIS_%s" (upper $key) }}
{{ $keyName }}: {{ $value | quote }}
{{- end }}
{{- end }}