mirror of
https://github.com/truenas/charts.git
synced 2026-06-15 06:28:46 +08:00
immich - adapt to upstream changes
This commit is contained in:
committed by
Stavros Kois
parent
a81f2751a9
commit
ee21e3d9b9
@@ -3,9 +3,9 @@ description: Immich
|
||||
annotations:
|
||||
title: Immich
|
||||
type: application
|
||||
version: 1.1.1
|
||||
version: 1.2.0
|
||||
apiVersion: v2
|
||||
appVersion: 1.87.0
|
||||
appVersion: 1.88.0
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
maintainers:
|
||||
- name: truenas
|
||||
|
||||
@@ -87,7 +87,11 @@ configmap:
|
||||
data:
|
||||
LOG_LEVEL: log
|
||||
NODE_ENV: production
|
||||
SERVER_PORT: {{ .Values.immichNetwork.serverPort | quote }}
|
||||
SERVER_PORT: {{ .Values.immichNetwork.webuiPort | quote }}
|
||||
IMMICH_SERVER_URL: {{ printf "http://%v-server:%v/api" $fullname .Values.immichNetwork.webuiPort }}
|
||||
{{- with .Values.immichConfig.publicLoginMessage }}
|
||||
PUBLIC_LOGIN_PAGE_MESSAGE: {{ . | quote }}
|
||||
{{- end }}
|
||||
|
||||
micro-config:
|
||||
enabled: true
|
||||
@@ -97,23 +101,6 @@ configmap:
|
||||
MICROSERVICES_PORT: {{ .Values.immichNetwork.microservicesPort | quote }}
|
||||
REVERSE_GEOCODING_DUMP_DIRECTORY: /microcache
|
||||
|
||||
web-config:
|
||||
enabled: true
|
||||
data:
|
||||
NODE_ENV: production
|
||||
PORT: {{ .Values.immichNetwork.webPort | quote }}
|
||||
IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fullname .Values.immichNetwork.serverPort }}
|
||||
PUBLIC_IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fullname .Values.immichNetwork.serverPort }}
|
||||
{{- with .Values.immichConfig.publicLoginMessage }}
|
||||
PUBLIC_LOGIN_PAGE_MESSAGE: {{ . | quote }}
|
||||
{{- end }}
|
||||
|
||||
proxy-config:
|
||||
enabled: true
|
||||
data:
|
||||
IMMICH_WEB_URL: {{ printf "http://%v-web:%v" $fullname .Values.immichNetwork.webPort }}
|
||||
IMMICH_SERVER_URL: {{ printf "http://%v-server:%v" $fullname .Values.immichNetwork.serverPort }}
|
||||
|
||||
{{- if .Values.immichConfig.enableML }}
|
||||
ml-config:
|
||||
enabled: true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{- define "immich.machinelearning.workload" -}}
|
||||
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
|
||||
{{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort }}
|
||||
{{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.webuiPort }}
|
||||
workload:
|
||||
machinelearning:
|
||||
enabled: true
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{- define "immich.microservices.workload" -}}
|
||||
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
|
||||
{{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort }}
|
||||
{{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.webuiPort }}
|
||||
workload:
|
||||
microservices:
|
||||
enabled: true
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
{{- define "immich.proxy.workload" -}}
|
||||
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
|
||||
{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort -}}
|
||||
{{- $webUrl := printf "http://%v-web:%v/robots.txt" $fullname .Values.immichNetwork.webPort }}
|
||||
workload:
|
||||
proxy:
|
||||
enabled: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
hostNetwork: false
|
||||
containers:
|
||||
proxy:
|
||||
enabled: true
|
||||
primary: true
|
||||
imageSelector: proxyImage
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
runAsNonRoot: false
|
||||
readOnlyRootFilesystem: false
|
||||
capabilities:
|
||||
add:
|
||||
- CHOWN
|
||||
- SETUID
|
||||
- SETGID
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: proxy-config
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /api/server-info/ping
|
||||
port: 8080
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /api/server-info/ping
|
||||
port: 8080
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /api/server-info/ping
|
||||
port: 8080
|
||||
initContainers:
|
||||
{{- include "immich.wait.init" (dict "url" $serverUrl) | indent 8 }}
|
||||
{{- include "immich.wait.init" (dict "url" $webUrl) | indent 8 }}
|
||||
{{- end -}}
|
||||
@@ -32,17 +32,17 @@ workload:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /server-info/ping
|
||||
port: {{ .Values.immichNetwork.serverPort }}
|
||||
port: {{ .Values.immichNetwork.webuiPort }}
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /server-info/ping
|
||||
port: {{ .Values.immichNetwork.serverPort }}
|
||||
port: {{ .Values.immichNetwork.webuiPort }}
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /server-info/ping
|
||||
port: {{ .Values.immichNetwork.serverPort }}
|
||||
port: {{ .Values.immichNetwork.webuiPort }}
|
||||
initContainers:
|
||||
{{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
|
||||
"secretName" "postgres-creds") | nindent 8 }}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{- define "immich.typesense.workload" -}}
|
||||
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
|
||||
{{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort }}
|
||||
{{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.webuiPort }}
|
||||
workload:
|
||||
typesense:
|
||||
enabled: true
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
{{- define "immich.web.workload" -}}
|
||||
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
|
||||
{{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort }}
|
||||
workload:
|
||||
web:
|
||||
enabled: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
hostNetwork: false
|
||||
containers:
|
||||
web:
|
||||
enabled: true
|
||||
primary: true
|
||||
imageSelector: webImage
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
runAsNonRoot: false
|
||||
readOnlyRootFilesystem: false
|
||||
capabilities:
|
||||
add:
|
||||
- SETUID
|
||||
- SETGID
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: web-config
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /robots.txt
|
||||
port: {{ .Values.immichNetwork.webPort }}
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /robots.txt
|
||||
port: {{ .Values.immichNetwork.webPort }}
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /robots.txt
|
||||
port: {{ .Values.immichNetwork.webPort }}
|
||||
initContainers:
|
||||
{{- include "immich.wait.init" (dict "url" $url) | indent 8 }}
|
||||
{{- end -}}
|
||||
@@ -1,12 +1,4 @@
|
||||
{{- define "immich.persistence" -}}
|
||||
{{- include "immich.storage.ci.migration" (dict "storage" .Values.immichStorage.pgData) }}
|
||||
{{- include "immich.storage.ci.migration" (dict "storage" .Values.immichStorage.pgBackup) }}
|
||||
{{- include "immich.storage.ci.migration" (dict "storage" .Values.immichStorage.library) }}
|
||||
{{- include "immich.storage.ci.migration" (dict "storage" .Values.immichStorage.uploads) }}
|
||||
{{- include "immich.storage.ci.migration" (dict "storage" .Values.immichStorage.thumbs) }}
|
||||
{{- include "immich.storage.ci.migration" (dict "storage" .Values.immichStorage.profile) }}
|
||||
{{- include "immich.storage.ci.migration" (dict "storage" .Values.immichStorage.video) }}
|
||||
|
||||
persistence:
|
||||
{{/* Data */}}
|
||||
library:
|
||||
@@ -62,7 +54,6 @@ persistence:
|
||||
{{- range $idx, $storage := .Values.immichStorage.additionalStorages }}
|
||||
{{ printf "immich-%v:" (int $idx) }}
|
||||
enabled: true
|
||||
{{- include "immich.storage.ci.migration" (dict "storage" $storage) }}
|
||||
{{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
|
||||
targetSelector:
|
||||
server:
|
||||
@@ -120,13 +111,3 @@ persistence:
|
||||
"pgBackup" .Values.immichStorage.pgBackup
|
||||
) | nindent 2 }}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Can be removed on the next bump (1.1.0+), only used for CI values */}}
|
||||
{{- define "immich.storage.ci.migration" -}}
|
||||
{{- $storage := .storage -}}
|
||||
|
||||
{{- if $storage.hostPath -}}
|
||||
{{- $_ := set $storage "hostPathConfig" dict -}}
|
||||
{{- $_ := set $storage.hostPathConfig "hostPath" $storage.hostPath -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -1,44 +1,19 @@
|
||||
{{- define "immich.service" -}}
|
||||
service:
|
||||
proxy:
|
||||
server:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: NodePort
|
||||
targetSelector: proxy
|
||||
ports:
|
||||
proxy:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.immichNetwork.webuiPort }}
|
||||
nodePort: {{ .Values.immichNetwork.webuiPort }}
|
||||
protocol: http
|
||||
targetPort: 8080
|
||||
targetSelector: proxy
|
||||
|
||||
server:
|
||||
enabled: true
|
||||
type: ClusterIP
|
||||
targetSelector: server
|
||||
ports:
|
||||
server:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.immichNetwork.serverPort }}
|
||||
port: {{ .Values.immichNetwork.webuiPort }}
|
||||
nodePort: {{ .Values.immichNetwork.webuiPort }}
|
||||
protocol: http
|
||||
targetSelector: server
|
||||
|
||||
web:
|
||||
enabled: true
|
||||
type: ClusterIP
|
||||
targetSelector: web
|
||||
ports:
|
||||
web:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.immichNetwork.webPort }}
|
||||
protocol: http
|
||||
targetSelector: web
|
||||
|
||||
microservices:
|
||||
enabled: true
|
||||
type: ClusterIP
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
{{- if .Values.immichConfig.enableML -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "immich.machinelearning.workload" $ | fromYaml) -}}
|
||||
{{- end -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "immich.web.workload" $ | fromYaml) -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "immich.proxy.workload" $ | fromYaml) -}}
|
||||
{{- if .Values.immichConfig.enableTypesense -}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "immich.typesense.workload" $ | fromYaml) -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -1,22 +1,12 @@
|
||||
image:
|
||||
repository: altran1502/immich-server
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v1.87.0
|
||||
|
||||
webImage:
|
||||
repository: altran1502/immich-web
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v1.87.0
|
||||
|
||||
proxyImage:
|
||||
repository: altran1502/immich-proxy
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v1.87.0
|
||||
tag: v1.88.0
|
||||
|
||||
mlImage:
|
||||
repository: altran1502/immich-machine-learning
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v1.87.0
|
||||
tag: v1.88.0
|
||||
|
||||
typesenseImage:
|
||||
repository: typesense/typesense
|
||||
@@ -40,8 +30,6 @@ immichNetwork:
|
||||
# Not user configurable, will be hidden on UI
|
||||
# Putting it here in case it needs to be configurable
|
||||
# in the future.
|
||||
serverPort: 32000
|
||||
webPort: 32001
|
||||
machinelearningPort: 32002
|
||||
microservicesPort: 32003
|
||||
typesensePort: 32004
|
||||
|
||||
Reference in New Issue
Block a user