mirror of
https://github.com/truenas/charts.git
synced 2026-05-11 19:16:17 +08:00
46 lines
1.4 KiB
Smarty
46 lines
1.4 KiB
Smarty
{{- define "immich.machinelearning.workload" -}}
|
|
{{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
|
|
{{- $url := printf "http://%v:%v/api/server/ping" $fullname .Values.immichNetwork.webuiPort -}}
|
|
{{- $img := "mlImage" -}}
|
|
{{- with .Values.immichConfig.mlImageType -}}
|
|
{{- $img = . -}}
|
|
{{- end }}
|
|
workload:
|
|
machinelearning:
|
|
enabled: true
|
|
type: Deployment
|
|
podSpec:
|
|
hostNetwork: false
|
|
containers:
|
|
machinelearning:
|
|
enabled: true
|
|
primary: true
|
|
imageSelector: {{ $img }}
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
runAsNonRoot: false
|
|
readOnlyRootFilesystem: false
|
|
envFrom:
|
|
- configMapRef:
|
|
name: ml-config
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.immichNetwork.machinelearningPort }}
|
|
path: /ping
|
|
readiness:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.immichNetwork.machinelearningPort }}
|
|
path: /ping
|
|
startup:
|
|
enabled: true
|
|
type: http
|
|
port: {{ .Values.immichNetwork.machinelearningPort }}
|
|
path: /ping
|
|
initContainers:
|
|
{{- include "immich.wait.init" (dict "url" $url) | indent 8 }}
|
|
{{- end -}}
|