_tautulli.tpl 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {{- define "tautulli.workload" -}}
  2. workload:
  3. tautulli:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.tautulliNetwork.hostNetwork }}
  9. containers:
  10. tautulli:
  11. enabled: true
  12. primary: true
  13. imageSelector: image
  14. securityContext:
  15. runAsUser: {{ .Values.tautulliRunAs.user }}
  16. runAsGroup: {{ .Values.tautulliRunAs.group }}
  17. command:
  18. - python
  19. - Tautulli.py
  20. args:
  21. - --port
  22. - {{ .Values.tautulliNetwork.webPort | quote }}
  23. - --config
  24. - /config/config.ini
  25. - --datadir
  26. - /config
  27. {{ with .Values.tautulliConfig.additionalEnvs }}
  28. envList:
  29. {{ range $env := . }}
  30. - name: {{ $env.name }}
  31. value: {{ $env.value }}
  32. {{ end }}
  33. {{ end }}
  34. probes:
  35. liveness:
  36. enabled: true
  37. type: http
  38. port: "{{ .Values.tautulliNetwork.webPort }}"
  39. path: /status
  40. readiness:
  41. enabled: true
  42. type: http
  43. port: "{{ .Values.tautulliNetwork.webPort }}"
  44. path: /status
  45. startup:
  46. enabled: true
  47. type: http
  48. port: "{{ .Values.tautulliNetwork.webPort }}"
  49. path: /status
  50. initContainers:
  51. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  52. "UID" .Values.tautulliRunAs.user
  53. "GID" .Values.tautulliRunAs.group
  54. "mode" "check"
  55. "type" "install") | nindent 8 }}
  56. {{- end -}}