# Namespaces support by Ray operator

**URL:** <https://discuss.ray.io/t/namespaces-support-by-ray-operator/1563>\
**Category:** Kubernetes\
**Created:** [April 6, 2021, 12:00am UTC](https://discuss.ray.io/t/namespaces-support-by-ray-operator/1563 "2021-04-06T00:00:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blublinsky](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@blublinsky](https://discuss.ray.io/u/blublinsky)\
**Post date:** [April 6, 2021, 12:00am UTC](https://discuss.ray.io/t/namespaces-support-by-ray-operator/1563/1 "2021-04-06T00:00:53Z")

</div>

It looks like Ray operator is watching only a namespace that it is installed in - I installed it in the namespace Ray and now can create clusters in this namespace. But if I try to create a cluster in the different namespace, I see RayCluster object there, but the cluster is never created.

---

<div class="post-metadata">

**Author:** ![yic](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/yic/32/437_2.png) [@yic](https://discuss.ray.io/u/yic)\
**Post date:** [April 6, 2021, 5:35am UTC](https://discuss.ray.io/t/namespaces-support-by-ray-operator/1563/2 "2021-04-06T05:35:52Z")

</div>

@Ameer_Haj_Ali are you the right one to answer this?

---

<div class="post-metadata">

**Author:** ![Ameer\_Haj\_Ali](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/ameer_haj_ali/32/279_2.png) [@Ameer\_Haj\_Ali](https://discuss.ray.io/u/Ameer_Haj_Ali)\
**Post date:** [April 6, 2021, 1:55pm UTC](https://discuss.ray.io/t/namespaces-support-by-ray-operator/1563/3 "2021-04-06T13:55:54Z")

</div>

Thanks for asking. Cc @Dmitri

---

<div class="post-metadata">

**Author:** ![Dmitri](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/dmitri/32/657_2.png) [@Dmitri](https://discuss.ray.io/u/Dmitri)\
**Post date:** [April 6, 2021, 2:13pm UTC](https://discuss.ray.io/t/namespaces-support-by-ray-operator/1563/4 "2021-04-06T14:13:00Z")

</div>

The operator is currently namespace-scoped. Thus, for a RayCluster resource to be processed, an instance of the operator must be running in the same namespace.

Adding support for running the Ray Operator as a cluster-scoped controller is an open action item

> <https://github.com/ray-project/ray/issues/14093>
>
> Currently only support namespaced-scoped operator.
> This should be pretty low eff…ort.

See also this post

> [@Support creating clusters in multiple namespaces](https://discuss.ray.io/t/support-creating-clusters-in-multiple-namespaces/871/3):
>
> Yeah, this should be not too bad to do. Made a GitHub issue to remind myself
