| gio | 404e237 | 2025-07-11 12:50:26 +0400 | [diff] [blame] | 1 | {{- define "immich.machine-learning.hardcodedValues" -}} |
| 2 | global: |
| 3 | nameOverride: machine-learning |
| 4 | |
| 5 | controller: |
| 6 | strategy: RollingUpdate |
| 7 | |
| 8 | service: |
| 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 | |
| 20 | probes: |
| 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 }} |