_homarr.tpl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {{- define "homarr.workload" -}}
  2. workload:
  3. homarr:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.homarrNetwork.hostNetwork }}
  9. containers:
  10. homarr:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.homarrRunAs.user }}
  16. runAsGroup: {{ .Values.homarrRunAs.group }}
  17. env:
  18. PORT: {{ .Values.homarrNetwork.webPort }}
  19. {{ with .Values.homarrConfig.password }}
  20. PASSWORD: {{ . }}
  21. {{ end }}
  22. {{ with .Values.homarrConfig.additionalEnvs }}
  23. envList:
  24. {{ range $env := . }}
  25. - name: {{ $env.name }}
  26. value: {{ $env.value }}
  27. {{ end }}
  28. {{ end }}
  29. probes:
  30. liveness:
  31. enabled: true
  32. type: http
  33. port: "{{ .Values.homarrNetwork.webPort }}"
  34. path: /api/configs
  35. readiness:
  36. enabled: true
  37. type: http
  38. port: "{{ .Values.homarrNetwork.webPort }}"
  39. path: /api/configs
  40. startup:
  41. enabled: true
  42. type: http
  43. port: "{{ .Values.homarrNetwork.webPort }}"
  44. path: /api/configs
  45. initContainers:
  46. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  47. "UID" .Values.homarrRunAs.user
  48. "GID" .Values.homarrRunAs.group
  49. "mode" "check"
  50. "type" "init") | nindent 8 }}
  51. {{- end -}}