_audiobookshelf.tpl 1.8 KB

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