_immich-proxy.tpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{- define "immich.proxy.workload" -}}
  2. {{- $fullname := (include "ix.v1.common.lib.chart.names.fullname" $) -}}
  3. {{- $serverUrl := printf "http://%v-server:%v/server-info/ping" $fullname .Values.immichNetwork.serverPort -}}
  4. {{- $webUrl := printf "http://%v-web:%v/robots.txt" $fullname .Values.immichNetwork.webPort }}
  5. workload:
  6. proxy:
  7. enabled: true
  8. type: Deployment
  9. podSpec:
  10. hostNetwork: false
  11. containers:
  12. proxy:
  13. enabled: true
  14. primary: true
  15. imageSelector: proxyImage
  16. securityContext:
  17. runAsUser: 0
  18. runAsGroup: 0
  19. runAsNonRoot: false
  20. readOnlyRootFilesystem: false
  21. capabilities:
  22. add:
  23. - CHOWN
  24. - SETUID
  25. - SETGID
  26. envFrom:
  27. - configMapRef:
  28. name: proxy-config
  29. probes:
  30. liveness:
  31. enabled: true
  32. type: http
  33. path: /api/server-info/ping
  34. port: 8080
  35. readiness:
  36. enabled: true
  37. type: http
  38. path: /api/server-info/ping
  39. port: 8080
  40. startup:
  41. enabled: true
  42. type: http
  43. path: /api/server-info/ping
  44. port: 8080
  45. initContainers:
  46. {{- include "immich.wait.init" (dict "url" $serverUrl) | indent 8 }}
  47. {{- include "immich.wait.init" (dict "url" $webUrl) | indent 8 }}
  48. {{- end -}}