mirror of
https://github.com/truenas/charts.git
synced 2026-04-25 02:50:42 +08:00
* immich: remove microservices * let upgrades succeed * let default entrypoint take place * skip upgrade tests, as it users new values with old templates and this wont fly
47 lines
1.5 KiB
Smarty
47 lines
1.5 KiB
Smarty
{{- define "immich.server.workload" -}}
|
|
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) }}
|
|
workload:
|
|
server:
|
|
enabled: true
|
|
primary: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: false
|
|
containers:
|
|
server:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: image
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
envFrom:
|
|
- secretRef:
|
|
name: immich-creds
|
|
- configMapRef:
|
|
name: server-config
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
path: /api/server-info/ping
|
|
port: {{ .Values.immichNetwork.webuiPort }}
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
path: /api/server-info/ping
|
|
port: {{ .Values.immichNetwork.webuiPort }}
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
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 }}
|
|
{{- include "ix.v1.common.app.redisWait" (dict "name" "redis-wait"
|
|
"secretName" "redis-creds") | nindent 8 }}
|
|
{{- end -}}
|