mirror of
https://github.com/truenas/charts.git
synced 2026-06-15 06:28:46 +08:00
Fix gpu assignment on multi gpu systems. (#1198)
This commit is contained in:
@@ -3,7 +3,7 @@ description: Jellyfin is a Free Software Media System that puts you in control o
|
||||
annotations:
|
||||
title: Jellyfin
|
||||
type: application
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
apiVersion: v2
|
||||
appVersion: '10.8.10'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
|
||||
@@ -17,6 +17,8 @@ jellyfinStorage:
|
||||
medium: Memory
|
||||
size: 1Gi
|
||||
|
||||
# TODO: Test on a GPU-enabled system
|
||||
# jellyfinGPU:
|
||||
# nvidia.com/gpu: 1
|
||||
# Make sure installation don't fail when 0 GPU are assigned
|
||||
jellyfinGPU:
|
||||
nvidia.com/gpu: 0
|
||||
intel.com/gpu: 0
|
||||
# TODO: Test assigning GPUs on a GPU-enabled system
|
||||
|
||||
@@ -125,14 +125,13 @@ persistence:
|
||||
mountPath: /mnt/directories{{ $storage.mountPath }}
|
||||
{{- end }}
|
||||
{{ with .Values.jellyfinGPU }}
|
||||
{{ if gt (. | len) 1 }}
|
||||
{{- fail "Jellyfin - Max [1] GPUs allowed" -}}
|
||||
{{ end }}
|
||||
scaleGPU:
|
||||
{{ range $key, $value := . }}
|
||||
- gpu:
|
||||
{{ . | keys | first }}: {{ . | values | first }}
|
||||
{{ $key }}: {{ $value }}
|
||||
targetSelector:
|
||||
jellyfin:
|
||||
- jellyfin
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
@@ -3,7 +3,7 @@ description: Tdarr is a Distributed Transcoding System
|
||||
annotations:
|
||||
title: Tdarr
|
||||
type: application
|
||||
version: 1.0.3
|
||||
version: 1.0.4
|
||||
apiVersion: v2
|
||||
appVersion: '2.00.20.1'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
|
||||
@@ -17,3 +17,7 @@ tdarrStorage:
|
||||
type: emptyDir
|
||||
medium: Memory
|
||||
size: 1Gi
|
||||
# Make sure installation don't fail when 0 GPU are assigned
|
||||
tdarrGPU:
|
||||
nvidia.com/gpu: 0
|
||||
intel.com/gpu: 0
|
||||
|
||||
@@ -131,14 +131,13 @@ persistence:
|
||||
{{- end }}
|
||||
|
||||
{{ with .Values.tdarrGPU }}
|
||||
{{ if gt (. | len) 1 }}
|
||||
{{- fail "Tdarr - Max [1] GPUs allowed" -}}
|
||||
{{ end }}
|
||||
scaleGPU:
|
||||
{{ range $key, $value := . }}
|
||||
- gpu:
|
||||
{{ . | keys | first }}: {{ . | values | first }}
|
||||
{{ $key }}: {{ $value }}
|
||||
targetSelector:
|
||||
tdarr:
|
||||
- tdarr
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user