_immich-server.tpl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. command: /bin/sh
  21. args:
  22. - -c
  23. - /usr/src/app/start-server.sh
  24. envFrom:
  25. - secretRef:
  26. name: immich-creds
  27. - configMapRef:
  28. name: server-config
  29. probes:
  30. liveness:
  31. enabled: true
  32. type: http
  33. path: /api/server-info/ping
  34. port: {{ .Values.immichNetwork.webuiPort }}
  35. readiness:
  36. enabled: true
  37. type: http
  38. path: /api/server-info/ping
  39. port: {{ .Values.immichNetwork.webuiPort }}
  40. startup:
  41. enabled: true
  42. type: http
  43. path: /api/server-info/ping
  44. port: {{ .Values.immichNetwork.webuiPort }}
  45. initContainers:
  46. {{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
  47. "secretName" "postgres-creds") | nindent 8 }}
  48. {{- include "ix.v1.common.app.redisWait" (dict "name" "redis-wait"
  49. "secretName" "redis-creds") | nindent 8 }}
  50. {{- end -}}