feat: migrate immich to k8s
This commit is contained in:
parent
2f0378cba6
commit
3d3ea948db
21 changed files with 1044 additions and 100 deletions
22
k8s/charts/immich/templates/configmap.yaml
Normal file
22
k8s/charts/immich/templates/configmap.yaml
Normal 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue