kuberay icon indicating copy to clipboard operation
kuberay copied to clipboard

[Feature] Support `runtimeClassName` in values.yaml

Open unclebenel opened this issue 6 months ago • 6 comments

Search before asking

  • [x] I had searched in the issues and found no similar feature requirement.

Description

What problem does this solve? KubeRay clusters that run with containerd + GPU runtimes (e.g. k3s/rke + nvidia) must set spec.template.spec.runtimeClassName: nvidia on the worker Pods.

With the current chart (¹) there is no supported way to pass that field. the template only renders an explicit whitelist of PodSpec attributes, so any additional keys placed under

worker: template: spec:

are silently discarded.

The only workaround today is to patch the RayCluster after Helm deploy: kubectl patch raycluster --type=json
-p='[ {"op":"add", "path":"/spec/workerGroupSpecs/0/template/spec/runtimeClassName", "value":"nvidia"} ]'

Use case

worker: template: spec: runtimeClassName: nvidia

Related issues

No response

Are you willing to submit a PR?

  • [x] Yes I am willing to submit a PR!

unclebenel avatar Jun 17 '25 14:06 unclebenel

Hi @Future-Outlier, is this issue still valid? I'd like to give it a shot.

Narwhal-fish avatar Nov 05 '25 11:11 Narwhal-fish

Hi @Future-Outlier, is this issue still valid? I'd like to give it a shot.

go for it

Future-Outlier avatar Nov 05 '25 18:11 Future-Outlier

Hi @Future-Outlier, is this issue still valid? I'd like to give it a shot.

go for it

Thanks! I'll take a look into it.

Narwhal-fish avatar Nov 07 '25 06:11 Narwhal-fish

I’m planning to modify helm-chart/ray-cluster/templates/raycluster-cluster.yaml to include something like: {{- with .Values.worker.runtimeClassName }} runtimeClassName: {{ . }} {{- end }}

However, I noticed there’s also another repository kuberay-helm. Should I submit the PR there, or in this main repository?

Narwhal-fish avatar Nov 08 '25 05:11 Narwhal-fish

Hi @Narwhal-fish,

You just need to open a PR in this repo, the release manager will handle syncing it to the kuberay-helm repo during the release process.

win5923 avatar Nov 08 '25 09:11 win5923

Hi @Narwhal-fish,

You just need to open a PR in this repo, the release manager will handle syncing it to the kuberay-helm repo during the release process.

Got it!

Narwhal-fish avatar Nov 09 '25 06:11 Narwhal-fish