From 7b22683ac5b850e399c4ce7961d63e1e18a94c29 Mon Sep 17 00:00:00 2001 From: Wagner Santos <7467450+wagoid@users.noreply.github.com> Date: Mon, 21 Oct 2024 11:02:59 -0300 Subject: [PATCH] feat: allow using a custom runtimeClassName (#32) --- charts/jellyfin/README.md | 1 + charts/jellyfin/templates/deployment.yaml | 3 +++ charts/jellyfin/values.yaml | 3 +++ 3 files changed, 7 insertions(+) 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: []