_immich-server.tpl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{- define "immich.server.workload" -}}
  2. {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) }}
  3. workload:
  4. server:
  5. enabled: true
  6. primary: true
  7. type: Deployment
  8. podSpec:
  9. hostNetwork: false
  10. containers:
  11. server:
  12. enabled: true
  13. primary: true
  14. imageSelector: image
  15. securityContext:
  16. runAsUser: 0
  17. runAsGroup: 0
  18. runAsNonRoot: false
  19. readOnlyRootFilesystem: false
  20. envFrom:
  21. - secretRef:
  22. name: immich-creds
  23. - configMapRef:
  24. name: server-config
  25. probes:
  26. liveness:
  27. enabled: true
  28. type: http
  29. path: /api/server-info/ping
  30. port: {{ .Values.immichNetwork.webuiPort }}
  31. readiness:
  32. enabled: true
  33. type: http
  34. path: /api/server-info/ping
  35. port: {{ .Values.immichNetwork.webuiPort }}
  36. startup:
  37. enabled: true
  38. type: http
  39. path: /api/server-info/ping
  40. port: {{ .Values.immichNetwork.webuiPort }}
  41. initContainers:
  42. {{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
  43. "secretName" "postgres-creds") | nindent 8 }}
  44. {{- include "ix.v1.common.app.redisWait" (dict "name" "redis-wait"
  45. "secretName" "redis-creds") | nindent 8 }}
  46. {{- end -}}