diff --git a/charts/kube-plex/templates/deployment.yaml b/charts/kube-plex/templates/deployment.yaml index eafe64b..1941265 100644 --- a/charts/kube-plex/templates/deployment.yaml +++ b/charts/kube-plex/templates/deployment.yaml @@ -135,6 +135,11 @@ spec: {{- end }} {{- end }} volumeMounts: + {{- if .Values.gpu.enabled }} + - name: dev-dri + mountPath: {{ .Values.gpu.mountPath }} + readOnly: true + {{- end }} - name: data mountPath: /data {{- if .Values.persistence.data.subPath }} @@ -163,6 +168,11 @@ spec: {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} volumes: + {{- if .Values.gpu.enabled }} + - name: dev-dri + hostPath: + path: {{ .Values.gpu.hostPath }} + {{- end }} - name: data persistentVolumeClaim: {{- if .Values.persistence.data.claimName }} diff --git a/charts/kube-plex/values.yaml b/charts/kube-plex/values.yaml index 5374de6..29f2ea9 100644 --- a/charts/kube-plex/values.yaml +++ b/charts/kube-plex/values.yaml @@ -146,3 +146,12 @@ tolerations: [] # allows specifying node affinity affinity: {} + +# GPU support for hardware-accelerated transcoding +gpu: + # Enable GPU support (mount /dev/dri from host) + enabled: false + # Host path to GPU device directory + hostPath: "/dev/dri" + # Container mount path for GPU devices + mountPath: "/dev/dri"