_tautulli.tpl 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. - /entrypoint.sh
  19. args:
  20. - --port
  21. - {{ .Values.tautulliNetwork.webPort | quote }}
  22. {{ with .Values.tautulliConfig.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.tautulliNetwork.webPort }}"
  34. path: /status
  35. readiness:
  36. enabled: true
  37. type: http
  38. port: "{{ .Values.tautulliNetwork.webPort }}"
  39. path: /status
  40. startup:
  41. enabled: true
  42. type: http
  43. port: "{{ .Values.tautulliNetwork.webPort }}"
  44. path: /status
  45. initContainers:
  46. {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
  47. "UID" .Values.tautulliRunAs.user
  48. "GID" .Values.tautulliRunAs.group
  49. "mode" "check"
  50. "type" "install") | nindent 8 }}
  51. {{- end -}}