blob: 2ab84f4fb2abc2958a2acd2689c2de8adb55e838 [file] [log] [blame]
Giorgi Lekveishvili8ef64552025-07-11 13:45:39 +04001{{- define "immich.machine-learning.hardcodedValues" -}}
2global:
3 nameOverride: machine-learning
4
5controller:
6 strategy: RollingUpdate
7
8service:
9 main:
10 enabled: true
11 primary: true
12 type: ClusterIP
13 ports:
14 http:
15 enabled: true
16 primary: true
17 port: 3003
18 protocol: HTTP
19
20probes:
21 liveness: &probes
22 enabled: true
23 custom: true
24 spec:
25 httpGet:
26 path: /ping
27 port: http
28 initialDelaySeconds: 0
29 periodSeconds: 10
30 timeoutSeconds: 1
31 failureThreshold: 3
32 readiness: *probes
33 startup:
34 enabled: true
35 custom: true
36 spec:
37 httpGet:
38 path: /ping
39 port: http
40 initialDelaySeconds: 0
41 periodSeconds: 10
42 timeoutSeconds: 1
43 failureThreshold: 60
44{{- end }}
45
46{{- /* Have to reference with index here because the dash breaks a normal dereference */}}
47{{ if (index .Values "machine-learning").enabled }}
48{{- $ctx := deepCopy . -}}
49{{- $_ := get .Values "machine-learning" | mergeOverwrite $ctx.Values -}}
50{{- $_ = include "immich.machine-learning.hardcodedValues" . | fromYaml | merge $ctx.Values -}}
51{{- include "bjw-s.common.loader.all" $ctx }}
52{{ end }}