diff --git a/charts/jellyfin/README.md b/charts/jellyfin/README.md index 9f3c895..ecc7856 100644 --- a/charts/jellyfin/README.md +++ b/charts/jellyfin/README.md @@ -98,6 +98,7 @@ helm install -f values.yaml | service.port | int | `8096` | | | service.type | string | `"ClusterIP"` | | | tolerations | list | `[]` | | +| runtimeClassName | string | `""` | Define a custom runtimeClassName for the pod, e.g. `nvidia` if you have the NVIDIA GPU Operator installed | ---------------------------------------------- Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2) diff --git a/charts/jellyfin/templates/deployment.yaml b/charts/jellyfin/templates/deployment.yaml index 3d4d8df..96be874 100644 --- a/charts/jellyfin/templates/deployment.yaml +++ b/charts/jellyfin/templates/deployment.yaml @@ -167,3 +167,6 @@ spec: {{ toYaml . | indent 8 }} {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- if .Values.runtimeClassName }} + runtimeClassName: {{.Values.runtimeClassName}} + {{- end }} diff --git a/charts/jellyfin/values.yaml b/charts/jellyfin/values.yaml index 9f25245..dcf3303 100644 --- a/charts/jellyfin/values.yaml +++ b/charts/jellyfin/values.yaml @@ -102,6 +102,9 @@ resources: {} # cpu: 100m # memory: 128Mi +# Define a custom runtimeClassName for the pod, e.g. "nvidia" if you have the NVIDIA GPU Operator installed +runtimeClassName: + nodeSelector: {} tolerations: []