# Installing KubeRay Operator failing

**URL:** <https://discuss.ray.io/t/installing-kuberay-operator-failing/8204>\
**Category:** Ray Clusters\
**Created:** [November 9, 2022, 11:23am UTC](https://discuss.ray.io/t/installing-kuberay-operator-failing/8204 "2022-11-09T11:23:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kasper\_Kooijman](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/kasper_kooijman/32/3409_2.png) [@Kasper\_Kooijman](https://discuss.ray.io/u/Kasper_Kooijman)\
**Post date:** [November 9, 2022, 11:23am UTC](https://discuss.ray.io/t/installing-kuberay-operator-failing/8204/1 "2022-11-09T11:23:18Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

Hi there,

I’m trying to install the KubeRay operator according to the documentation using the following command:

`kubectl create -k "github.com/ray-project/kuberay/ray-operator/config/default?ref=v0.3.0&timeout=90s"`

However, I’m getting the following error:  
`error: trouble checking out href v0.3.0&timeout=90s: exit status 1`

I’ve also tried cloning the KubeRay GitHub repo and deploying the configuration using:  
`kubectl create kuberay\ray-operator\config\default`

This throws  
`error: couldn't make loader for namespace.yaml: got file 'namespace.yaml', but 'C:\Users\...\kustomize-002098603\ray-operator\config\default\namespace.yaml' must be a directory to be a root`

I feel like I’m missing something blatantly obvious, but I don’t know what. Any help is appreciated. 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![Kasper\_Kooijman](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/kasper_kooijman/32/3409_2.png) [@Kasper\_Kooijman](https://discuss.ray.io/u/Kasper_Kooijman)\
**Post date:** [November 9, 2022, 12:50pm UTC](https://discuss.ray.io/t/installing-kuberay-operator-failing/8204/2 "2022-11-09T12:50:20Z")

</div>

I found my own solution. My client version of kubectl was outdated (1.17). Upgrading to the latest version solved the problem.

---

<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:** [November 9, 2022, 3:34pm UTC](https://discuss.ray.io/t/installing-kuberay-operator-failing/8204/3 "2022-11-09T15:34:12Z")

</div>

Hi! Thanks for pointing out the version issue.  
Which doc page were you following? We can include a version requirement there so that others don’t run into this.

---

<div class="post-metadata">

**Author:** ![Kasper\_Kooijman](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/kasper_kooijman/32/3409_2.png) [@Kasper\_Kooijman](https://discuss.ray.io/u/Kasper_Kooijman)\
**Post date:** [November 9, 2022, 3:44pm UTC](https://discuss.ray.io/t/installing-kuberay-operator-failing/8204/4 "2022-11-09T15:44:10Z")

</div>

Thanks for the response! I’ve spent quite some time searching for solutions or alternatives to my problem, so I guess all doc pages related to KubeRay. At least the following documentation pages:

- [Getting Started — Ray 2.1.0](https://docs.ray.io/en/latest/cluster/kubernetes/getting-started.html)
- [Deploying on Kubernetes — Ray 2.1.0](https://docs.ray.io/en/latest/serve/production-guide/kubernetes.html)

---

<div class="post-metadata">

**Author:** ![Kasper\_Kooijman](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/kasper_kooijman/32/3409_2.png) [@Kasper\_Kooijman](https://discuss.ray.io/u/Kasper_Kooijman)\
**Post date:** [November 9, 2022, 3:44pm UTC](https://discuss.ray.io/t/installing-kuberay-operator-failing/8204/5 "2022-11-09T15:44:43Z")

</div>

I can only put two links in a post (new user). I found the following Github pages:

- [Installation(Yaml) - KubeRay Docs](https://ray-project.github.io/kuberay/deploy/installation/)
- [GitHub - ray-project/kuberay: A toolkit to run Ray applications on Kubernetes](https://github.com/ray-project/kuberay#single-namespace-version)

---

<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:** [November 9, 2022, 4:21pm UTC](https://discuss.ray.io/t/installing-kuberay-operator-failing/8204/6 "2022-11-09T16:21:03Z")

</div>

Perfect, thanks. Doc amendments:

> <https://github.com/ray-project/ray/pull/30142>
>
> Signed-off-by: Dmitri Gekhtman \<dmitri.m.gekhtman@gmail.com\>
> 
> 
> 
> 
> 
> \## Why a…re these changes needed?
> 
> 
> 
> Adds Kubectl/K8s version requirement to Ray docs.
> https://discuss.ray.io/t/installing-kuberay-operator-failing/8204
> 
> \## Related issue number
> 
> 
> 
> \## Checks
> 
> \- \[\] I've signed off every commit(by using the -s flag, i.e., \`git commit -s\`) in this PR.
> \- \[\] I've run \`scripts/format.sh\` to lint the changes in this PR.
> \- \[\] I've included any doc changes needed for https://docs.ray.io/en/master/.
> \- \[\] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
> \- Testing Strategy
> - \[\] Unit tests
> - \[\] Release tests
> - \[\] This PR is not tested :(

> <https://github.com/ray-project/kuberay/pull/702>
>
> Signed-off-by: Dmitri Gekhtman \<dmitri.m.gekhtman@gmail.com\>
> 
> 
> 
> 
> 
> \## Why a…re these changes needed?
> 
> 
> 
> Remind users to upgrade kubectl.
> https://discuss.ray.io/t/installing-kuberay-operator-failing/8204/4
> 
> \## Related issue number
> 
> 
> 
> \## Checks
> 
> \- \[\] I've made sure the tests are passing. 
> \- Testing Strategy
> - \[\] Unit tests
> - \[\] Manual tests
> - \[\] This PR is not tested :(
