2023-05-13 07:56:21 +00:00
|
|
|
{{/* Define the machinelearning container */}}
|
|
|
|
{{- define "immich.machinelearning" -}}
|
2023-06-20 20:11:23 +00:00
|
|
|
{{- $fname := (include "tc.v1.common.lib.chart.names.fullname" .) -}}
|
|
|
|
{{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fname .Values.service.server.ports.server.port }}
|
2023-05-13 07:56:21 +00:00
|
|
|
enabled: true
|
|
|
|
type: Deployment
|
|
|
|
podSpec:
|
|
|
|
initContainers:
|
|
|
|
wait-server:
|
2023-06-20 20:11:23 +00:00
|
|
|
{{/* Wait for server */}}
|
|
|
|
{{- include "immich.wait" (dict "url" $serverUrl) | nindent 6 }}
|
2023-05-13 07:56:21 +00:00
|
|
|
containers:
|
|
|
|
machinelearning:
|
|
|
|
enabled: true
|
|
|
|
primary: true
|
|
|
|
imageSelector: mlImage
|
2023-06-20 20:11:23 +00:00
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
disableS6Caps: true
|
2023-05-13 07:56:21 +00:00
|
|
|
envFrom:
|
|
|
|
- configMapRef:
|
|
|
|
name: ml-config
|
|
|
|
probes:
|
|
|
|
readiness:
|
|
|
|
enabled: true
|
|
|
|
type: http
|
|
|
|
path: /ping
|
|
|
|
port: {{ .Values.service.machinelearning.ports.machinelearning.port }}
|
|
|
|
liveness:
|
|
|
|
enabled: true
|
|
|
|
type: http
|
|
|
|
path: /ping
|
|
|
|
port: {{ .Values.service.machinelearning.ports.machinelearning.port }}
|
|
|
|
startup:
|
|
|
|
enabled: true
|
|
|
|
type: http
|
|
|
|
path: /ping
|
|
|
|
port: {{ .Values.service.machinelearning.ports.machinelearning.port }}
|
|
|
|
{{- end -}}
|