# How to use 'ray up' with kuberay?

**URL:** <https://discuss.ray.io/t/how-to-use-ray-up-with-kuberay/22533>\
**Category:** Kubernetes\
**Created:** [May 20, 2025, 3:26pm UTC](https://discuss.ray.io/t/how-to-use-ray-up-with-kuberay/22533 "2025-05-20T15:26:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vladidobro](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/vladidobro/32/7982_2.png) [@vladidobro](https://discuss.ray.io/u/vladidobro)\
**Post date:** [May 20, 2025, 3:26pm UTC](https://discuss.ray.io/t/how-to-use-ray-up-with-kuberay/22533/1 "2025-05-20T15:26:15Z")

</div>

Hi,  
it seems like it should be possible to use ‘ray up’ with provider=kuberay, but i haven’t been able to make it work, nor find any documentation. The cluster config examples directory on github is also empty for kuberay.

Is there a way to use it? I would prefer to avoid writing my own adhoc cluster management scripts.

---

<div class="post-metadata">

**Author:** ![christina](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/christina/32/7542_2.png) [@christina](https://discuss.ray.io/u/christina)\
**Post date:** [May 20, 2025, 11:59pm UTC](https://discuss.ray.io/t/how-to-use-ray-up-with-kuberay/22533/2 "2025-05-20T23:59:59Z")

</div>

Hello! When using Kuberay, you are actually going to be using `kubectl` and and KubeRay specific YAML files instead of `ray up`, which doesn’t work with `provider=kuberay`. KubeRay operates on a different paradigm.

You can check these out to see if it’s helpful:

- [Getting Started with KubeRay — Ray 2.46.0](https://docs.ray.io/en/latest/cluster/kubernetes/getting-started.html)
- [Ray on Kubernetes — Ray 2.46.0](https://docs.ray.io/en/latest/cluster/kubernetes/index.html)

And some samples: [kuberay/ray-operator/config/samples at master · ray-project/kuberay · GitHub](https://github.com/ray-project/kuberay/tree/master/ray-operator/config/samples)

---

<div class="post-metadata">

**Author:** ![vladidobro](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/vladidobro/32/7982_2.png) [@vladidobro](https://discuss.ray.io/u/vladidobro)\
**Post date:** [May 28, 2025, 9:19am UTC](https://discuss.ray.io/t/how-to-use-ray-up-with-kuberay/22533/3 "2025-05-28T09:19:34Z")

</div>

Hi,  
thank you, I have read those docs. So `kubectl ray` it is.

I was a little bit confused that “ray up” uses this mapping

> <https://github.com/ray-project/ray/blob/master/python/ray/autoscaler/_private/providers.py#L193>

to dispatch. So it can apparently call into kuberay when `provider=kuberay`, but I haven’t been able to provide any cluster spec, and the KubeRayNodeProvider doesn’t seem provide the correct interface to be used with `ray up`.

> <https://github.com/ray-project/ray/blob/master/python/ray/autoscaler/_private/providers.py#L105>
