_readarr.tpl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {{- define "readarr.workload" -}}
  2. workload:
  3. readarr:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.readarrNetwork.hostNetwork }}
  9. containers:
  10. readarr:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.readarrRunAs.user }}
  16. runAsGroup: {{ .Values.readarrRunAs.group }}
  17. env:
  18. READARR__PORT: {{ .Values.readarrNetwork.webPort }}
  19. READARR__SERVER__PORT: {{ .Values.readarrNetwork.webPort }}
  20. READARR__APP__INSTANCENAME: {{ .Values.readarrConfig.instanceName }}
  21. {{ with .Values.readarrConfig.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.readarrNetwork.webPort }}"
  33. path: /ping
  34. readiness:
  35. enabled: true
  36. type: http
  37. port: "{{ .Values.readarrNetwork.webPort }}"
  38. path: /ping
  39. startup:
  40. enabled: true
  41. type: http
  42. port: "{{ .Values.readarrNetwork.webPort }}"
  43. path: /ping
  44. initContainers:
  45. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  46. "UID" .Values.readarrRunAs.user
  47. "GID" .Values.readarrRunAs.group
  48. "mode" "check"
  49. "type" "install") | nindent 8 }}
  50. {{- end -}}