_emby.tpl 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. {{ if .Values.embyGPU }}
  31. env:
  32. GIDLIST: 44,107
  33. {{ end }}
  34. {{ with .Values.embyConfig.additionalEnvs }}
  35. envList:
  36. {{ range $env := . }}
  37. - name: {{ $env.name }}
  38. value: {{ $env.value }}
  39. {{ end }}
  40. {{ end }}
  41. probes:
  42. liveness:
  43. enabled: true
  44. type: http
  45. path: /emby/System/Ping
  46. port: 8096
  47. readiness:
  48. enabled: true
  49. type: http
  50. path: /emby/System/Ping
  51. port: 8096
  52. startup:
  53. enabled: true
  54. type: http
  55. path: /emby/System/Ping
  56. port: 8096
  57. {{ with .Values.embyGPU }}
  58. scaleGPU:
  59. {{ range $key, $value := . }}
  60. - gpu:
  61. {{ $key }}: {{ $value }}
  62. targetSelector:
  63. emby:
  64. - emby
  65. {{ end }}
  66. {{ end }}
  67. {{- end -}}