_immich-machinelearning.tpl 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {{- define "immich.machinelearning.workload" -}}
  2. {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
  3. {{- $url := printf "http://%v:%v/api/server-info/ping" $fullname .Values.immichNetwork.webuiPort }}
  4. workload:
  5. machinelearning:
  6. enabled: true
  7. type: Deployment
  8. podSpec:
  9. hostNetwork: false
  10. containers:
  11. machinelearning:
  12. enabled: true
  13. primary: true
  14. imageSelector: mlImage
  15. securityContext:
  16. runAsUser: 0
  17. runAsGroup: 0
  18. runAsNonRoot: false
  19. readOnlyRootFilesystem: false
  20. envFrom:
  21. - configMapRef:
  22. name: ml-config
  23. probes:
  24. liveness:
  25. enabled: true
  26. type: http
  27. port: {{ .Values.immichNetwork.machinelearningPort }}
  28. path: /ping
  29. readiness:
  30. enabled: true
  31. type: http
  32. port: {{ .Values.immichNetwork.machinelearningPort }}
  33. path: /ping
  34. startup:
  35. enabled: true
  36. type: http
  37. port: {{ .Values.immichNetwork.machinelearningPort }}
  38. path: /ping
  39. initContainers:
  40. {{- include "immich.wait.init" (dict "url" $url) | indent 8 }}
  41. {{- end -}}