Skip to content

Commit

Permalink
Add runtimeClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspetit authored and cilindrox committed Jun 5, 2024
1 parent 46a0358 commit 18778f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/plex-media-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ The following table lists the configurable parameters of the Pms-chart chart and
| `initContainer.image.sha` | Optional SHA digest to specify a specific image rather than a specific tag | `""` |
| `initContainer.image.pullPolicy` | | `"IfNotPresent"` |
| `initContainer.script` | An optional script that will be run by the init container, it can be used on the first run to stop pms from starting when importing a pre-exiting database | `""` |
| `runtimeClassName` | Specify your own runtime class name eg use gpu | `""` |
| `rclone.enabled` | If rclone should be used to mount volumes | `false` |
| `rclone.image.registry` | The registry that should be used to pull the image from | `"index.docker.io"` |
| `rclone.image.repository` | The docker repo that will be used for the rclone container | `"rclone/rclone"` |
Expand Down
3 changes: 3 additions & 0 deletions charts/plex-media-server/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ spec:
annotations:
{{- toYaml .Values.statefulSet.podAnnotations | nindent 8 }}
spec:
{{- if .Values.runtimeClassName }}
runtimeClassName: {{ .Values.runtimeClassName | quote }}
{{- end }}
serviceAccountName: {{ include "pms-chart.serviceAccountName" . }}
tolerations:
{{- toYaml .Values.tolerations | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/plex-media-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ initContainer:
#
# echo "Done."

# specify your own runtime class name eg use gpu
runtimeClassName: ""

# the settings specific to rclone
rclone:
# if the rclone sidecar should be created
Expand Down

0 comments on commit 18778f4

Please sign in to comment.