_immich-microservices.tpl 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{- define "immich.microservices.workload" -}}
  2. {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
  3. {{- $url := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort }}
  4. workload:
  5. microservices:
  6. enabled: true
  7. type: Deployment
  8. podSpec:
  9. hostNetwork: false
  10. containers:
  11. microservices:
  12. enabled: true
  13. primary: true
  14. imageSelector: image
  15. securityContext:
  16. runAsUser: 0
  17. runAsGroup: 0
  18. runAsNonRoot: false
  19. readOnlyRootFilesystem: false
  20. args: start-microservices.sh
  21. envFrom:
  22. - secretRef:
  23. name: immich-creds
  24. - configMapRef:
  25. name: micro-config
  26. probes:
  27. liveness:
  28. enabled: true
  29. type: exec
  30. command:
  31. - /bin/sh
  32. - -c
  33. - |
  34. ps -a | grep -v grep | grep -q microservices
  35. readiness:
  36. enabled: true
  37. type: exec
  38. command:
  39. - /bin/sh
  40. - -c
  41. - |
  42. ps -a | grep -v grep | grep -q microservices
  43. startup:
  44. enabled: true
  45. type: exec
  46. command:
  47. - /bin/sh
  48. - -c
  49. - |
  50. ps -a | grep -v grep | grep -q microservices
  51. initContainers:
  52. {{- include "ix.v1.common.app.postgresWait" (dict "name" "postgres-wait"
  53. "secretName" "postgres-creds") | nindent 8 }}
  54. {{- include "ix.v1.common.app.redisWait" (dict "name" "redis-wait"
  55. "secretName" "redis-creds") | nindent 8 }}
  56. {{- include "immich.wait.init" (dict "url" $url) | indent 8 }}
  57. {{- end -}}