diff --git a/charts/plex-media-server/Chart.yaml b/charts/plex-media-server/Chart.yaml index 97ffb2a5..dadb7043 100644 --- a/charts/plex-media-server/Chart.yaml +++ b/charts/plex-media-server/Chart.yaml @@ -22,7 +22,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.2.0 +version: 1.3.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/plex-media-server/README.md b/charts/plex-media-server/README.md index bd44b8e3..a33641d6 100644 --- a/charts/plex-media-server/README.md +++ b/charts/plex-media-server/README.md @@ -1,6 +1,6 @@ # plex-media-server -![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.42.2](https://img.shields.io/badge/AppVersion-1.42.2-informational?style=flat-square) +![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.42.2](https://img.shields.io/badge/AppVersion-1.42.2-informational?style=flat-square) **Homepage:** @@ -129,6 +129,8 @@ Before contributing, please read the [Code of Conduct](../../CODE_OF_CONDUCT.md) | pms.claimSecret.name | string | `""` | | | pms.configExistingClaim | string | `""` | Name of an existing `PersistentVolumeClaim` for the PMS database NOTE: When set, 'configStorage' and 'storageClassName' are ignored. | | pms.configStorage | string | `"2Gi"` | The volume size to provision for the PMS database | +| pms.gpu.nvidia.capabilities | string | `"compute,video,utility"` | Optional: NVIDIA driver capabilities. Available values are: `compute`, `compat32`, `graphics`, `utility`, `video`, `display`. See [NVIDIA docs](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html#driver-capabilities) | +| pms.gpu.nvidia.devices | string | `"all"` | Optional: NVIDIA GPU devices by index or UUID. Examples: "0,1", "GPU-uuid1,GPU-uuid2", or "all". See [NVIDIA docs](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html#gpu-enumeration) | | pms.gpu.nvidia.enabled | bool | `false` | | | pms.livenessProbe | object | `{}` | Add kubernetes liveness probe to pms container. | | pms.readinessProbe | object | `{}` | Add kubernetes readiness probe to pms container. | diff --git a/charts/plex-media-server/templates/statefulset.yaml b/charts/plex-media-server/templates/statefulset.yaml index e3ba4af2..49c331b4 100644 --- a/charts/plex-media-server/templates/statefulset.yaml +++ b/charts/plex-media-server/templates/statefulset.yaml @@ -130,7 +130,7 @@ spec: value: {{ $value | quote }} {{- end }} {{- end }} - {{- if and .Values.pms.claimSecret.name .Values.pms.claimSecret.value }} + {{- if and .Values.pms.claimSecret.name .Values.pms.claimSecret.key }} - name: PLEX_CLAIM valueFrom: secretKeyRef: @@ -139,9 +139,9 @@ spec: {{- end }} {{- if .Values.pms.gpu.nvidia.enabled }} - name: NVIDIA_VISIBLE_DEVICES - value: all + value: {{ .Values.pms.gpu.nvidia.devices | default "all" | quote }} - name: NVIDIA_DRIVER_CAPABILITIES - value: compute,video,utility + value: {{ .Values.pms.gpu.nvidia.capabilities | default "compute,video,utility" | quote }} {{- end }} {{- with .Values.pms.livenessProbe }} livenessProbe: diff --git a/charts/plex-media-server/values.yaml b/charts/plex-media-server/values.yaml index f5bda93e..4eb67e48 100644 --- a/charts/plex-media-server/values.yaml +++ b/charts/plex-media-server/values.yaml @@ -68,6 +68,14 @@ pms: gpu: nvidia: enabled: false + # -- Optional: NVIDIA GPU devices by index or UUID. + # Examples: "0,1", "GPU-uuid1,GPU-uuid2", or "all". + # See [NVIDIA docs](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html#gpu-enumeration) + devices: "all" + # -- Optional: NVIDIA driver capabilities. + # Available values are: `compute`, `compat32`, `graphics`, `utility`, `video`, `display`. + # See [NVIDIA docs](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/docker-specialized.html#driver-capabilities) + capabilities: "compute,video,utility" resources: {} # We usually recommend not to specify default resources and to leave this as a conscious