_immich-web.tpl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {{- define "immich.web.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. web:
  6. enabled: true
  7. type: Deployment
  8. podSpec:
  9. hostNetwork: false
  10. containers:
  11. web:
  12. enabled: true
  13. primary: true
  14. imageSelector: webImage
  15. securityContext:
  16. runAsUser: 0
  17. runAsGroup: 0
  18. runAsNonRoot: false
  19. readOnlyRootFilesystem: false
  20. capabilities:
  21. add:
  22. - SETUID
  23. - SETGID
  24. envFrom:
  25. - configMapRef:
  26. name: web-config
  27. probes:
  28. liveness:
  29. enabled: true
  30. type: http
  31. path: /robots.txt
  32. port: {{ .Values.immichNetwork.webPort }}
  33. readiness:
  34. enabled: true
  35. type: http
  36. path: /robots.txt
  37. port: {{ .Values.immichNetwork.webPort }}
  38. startup:
  39. enabled: true
  40. type: http
  41. path: /robots.txt
  42. port: {{ .Values.immichNetwork.webPort }}
  43. initContainers:
  44. {{- include "immich.wait.init" (dict "url" $url) | indent 8 }}
  45. {{- end -}}