_emby.tpl 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {{- define "emby.workload" -}}
  2. workload:
  3. emby:
  4. enabled: true
  5. primary: true
  6. type: Deployment
  7. podSpec:
  8. hostNetwork: {{ .Values.embyNetwork.hostNetwork }}
  9. securityContext:
  10. fsGroup: {{ .Values.embyID.group }}
  11. containers:
  12. emby:
  13. enabled: true
  14. primary: true
  15. imageSelector: image
  16. securityContext:
  17. runAsUser: 0
  18. runAsGroup: 0
  19. runAsNonRoot: false
  20. readOnlyRootFilesystem: false
  21. capabilities:
  22. add:
  23. - CHOWN
  24. - DAC_OVERRIDE
  25. - FOWNER
  26. - SETGID
  27. - SETUID
  28. fixedEnv:
  29. PUID: {{ .Values.embyID.user }}
  30. {{ with .Values.embyConfig.additionalEnvs }}
  31. envList:
  32. {{ range $env := . }}
  33. - name: {{ $env.name }}
  34. value: {{ $env.value }}
  35. {{ end }}
  36. {{ end }}
  37. probes:
  38. liveness:
  39. enabled: true
  40. type: http
  41. path: /emby/System/Ping
  42. port: 8096
  43. readiness:
  44. enabled: true
  45. type: http
  46. path: /emby/System/Ping
  47. port: 8096
  48. startup:
  49. enabled: true
  50. type: http
  51. path: /emby/System/Ping
  52. port: 8096
  53. {{ with .Values.embyGPU }}
  54. scaleGPU:
  55. {{ range $key, $value := . }}
  56. - gpu:
  57. {{ $key }}: {{ $value }}
  58. targetSelector:
  59. emby:
  60. - emby
  61. {{ end }}
  62. {{ end }}
  63. {{- end -}}