mirror of
https://github.com/truenas/charts.git
synced 2026-04-14 10:40:31 +08:00
Publish new changes in catalog
This commit is contained in:
@@ -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 -}}
|
||||
@@ -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,11 +1,11 @@
|
||||
name: immich
|
||||
description: Immich
|
||||
description: Immich is a self-hosted photo and video backup solution directly from your mobile phone.
|
||||
annotations:
|
||||
title: Immich
|
||||
type: application
|
||||
version: 1.1.1
|
||||
version: 2.0.0
|
||||
apiVersion: v2
|
||||
appVersion: 1.87.0
|
||||
appVersion: 1.88.1
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
maintainers:
|
||||
- name: truenas
|
||||
@@ -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.1
|
||||
|
||||
mlImage:
|
||||
repository: altran1502/immich-machine-learning
|
||||
pullPolicy: IfNotPresent
|
||||
tag: v1.87.0
|
||||
tag: v1.88.1
|
||||
|
||||
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
|
||||
@@ -156,6 +156,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
immutable: true
|
||||
required: true
|
||||
- variable: library
|
||||
label: Immich Library Storage
|
||||
@@ -234,6 +235,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
immutable: true
|
||||
required: true
|
||||
- variable: thumbs
|
||||
label: Immich Thumbs Storage
|
||||
@@ -312,6 +314,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
immutable: true
|
||||
required: true
|
||||
- variable: profile
|
||||
label: Immich Profile Storage
|
||||
@@ -390,6 +393,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
immutable: true
|
||||
required: true
|
||||
- variable: video
|
||||
label: Immich Video Storage
|
||||
@@ -468,6 +472,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
immutable: true
|
||||
required: true
|
||||
|
||||
- variable: pgData
|
||||
@@ -555,6 +560,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
immutable: true
|
||||
required: true
|
||||
|
||||
- variable: pgBackup
|
||||
@@ -642,6 +648,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
immutable: true
|
||||
required: true
|
||||
|
||||
- variable: additionalStorages
|
||||
@@ -712,6 +719,7 @@ questions:
|
||||
schema:
|
||||
type: hostpath
|
||||
show_if: [["aclEnable", "=", false]]
|
||||
immutable: true
|
||||
required: true
|
||||
- variable: ixVolumeConfig
|
||||
label: ixVolume Configuration
|
||||
@@ -87,7 +87,10 @@ configmap:
|
||||
data:
|
||||
LOG_LEVEL: log
|
||||
NODE_ENV: production
|
||||
SERVER_PORT: {{ .Values.immichNetwork.serverPort | quote }}
|
||||
SERVER_PORT: {{ .Values.immichNetwork.webuiPort | quote }}
|
||||
{{- with .Values.immichConfig.publicLoginMessage }}
|
||||
PUBLIC_LOGIN_PAGE_MESSAGE: {{ . | quote }}
|
||||
{{- end }}
|
||||
|
||||
micro-config:
|
||||
enabled: true
|
||||
@@ -97,23 +100,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:%v/api/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:%v/api/server-info/ping" $fullname .Values.immichNetwork.webuiPort }}
|
||||
workload:
|
||||
microservices:
|
||||
enabled: true
|
||||
@@ -31,18 +31,18 @@ workload:
|
||||
liveness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /server-info/ping
|
||||
port: {{ .Values.immichNetwork.serverPort }}
|
||||
path: /api/server-info/ping
|
||||
port: {{ .Values.immichNetwork.webuiPort }}
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /server-info/ping
|
||||
port: {{ .Values.immichNetwork.serverPort }}
|
||||
path: /api/server-info/ping
|
||||
port: {{ .Values.immichNetwork.webuiPort }}
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
path: /server-info/ping
|
||||
port: {{ .Values.immichNetwork.serverPort }}
|
||||
path: /api/server-info/ping
|
||||
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:%v/api/server-info/ping" $fullname .Values.immichNetwork.webuiPort }}
|
||||
workload:
|
||||
typesense:
|
||||
enabled: true
|
||||
@@ -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
|
||||
@@ -9,7 +9,7 @@ wait-url:
|
||||
- -c
|
||||
- |
|
||||
echo "Pinging [{{ $url }}] until it is ready..."
|
||||
until wget --spider --quiet "{{ $url }}"; do
|
||||
until wget --spider --quiet --timeout=3 --tries=1 "{{ $url }}"; do
|
||||
echo "Waiting for [{{ $url }}] to be ready..."
|
||||
sleep 2
|
||||
done
|
||||
@@ -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 -}}
|
||||
Reference in New Issue
Block a user