Compare commits

...

2 Commits

Author SHA1 Message Date
gilgamezh 5a81df25db fix: remove duplicate port definition in kube-plex deployment
- Remove duplicate containerPort 32400 (http port)
- Keep pms port (32400) and https port (32443)
- Fixes ArgoCD deployment conflict with existing Helm release
2025-08-15 17:29:29 +02:00
gilgamezh 1bc376f4f1 Add configurable GPU support for hardware transcoding
- Add gpu configuration section to values.yaml with enable/disable toggle
- Make hostPath and mountPath configurable with sensible defaults (/dev/dri)
- Update deployment template with conditional GPU volume mounting
- GPU support is disabled by default for backward compatibility
- When enabled, mounts host GPU devices for hardware-accelerated transcoding

Usage:
  gpu:
    enabled: true
    hostPath: "/dev/dri"      # Host GPU device path
    mountPath: "/dev/dri"     # Container mount path

This allows users to easily enable GPU acceleration while maintaining
flexibility for different GPU setups and container paths.
2025-07-28 14:35:14 +02:00
2 changed files with 19 additions and 2 deletions
+10 -2
View File
@@ -83,8 +83,6 @@ spec:
ports:
- name: pms
containerPort: 32400
- name: http
containerPort: 32400
- name: https
containerPort: 32443
env:
@@ -135,6 +133,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 +166,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 }}
+9
View File
@@ -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"