Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] KubeRay operator can not be deployed #683

Closed
1 of 2 tasks
janessong opened this issue Nov 4, 2022 · 3 comments
Closed
1 of 2 tasks

[Bug] KubeRay operator can not be deployed #683

janessong opened this issue Nov 4, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@janessong
Copy link

Search before asking

  • I searched the issues and found no similar issues.

KubeRay Component

ray-operator

What happened + What you expected to happen

I cloned the KubeRay GitHub repo and deploy the operator's configuration from my local file system.
use kubectl create -k default/
error: couldn't make loader for namespace.yaml: got file 'namespace.yaml', but '/root/ray/kuberay/ray-operator/config/default/namespace.yaml' must be a directory to be a root

Reproduction script

kubectl 1.20.9 and k8s cluster was deployed

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!
@janessong janessong added the bug Something isn't working label Nov 4, 2022
@kevin85421
Copy link
Member

I cannot reproduce this error. My commands are as follows.

> cd ray-operator/config

> kubectl create -k default
namespace/ray-system created
customresourcedefinition.apiextensions.k8s.io/rayclusters.ray.io created
customresourcedefinition.apiextensions.k8s.io/rayjobs.ray.io created
customresourcedefinition.apiextensions.k8s.io/rayservices.ray.io created
serviceaccount/kuberay-operator created
role.rbac.authorization.k8s.io/kuberay-operator-leader-election created
clusterrole.rbac.authorization.k8s.io/kuberay-operator created
rolebinding.rbac.authorization.k8s.io/kuberay-operator-leader-election created
clusterrolebinding.rbac.authorization.k8s.io/kuberay-operator created
service/kuberay-operator created
deployment.apps/kuberay-operator created

This issue kubernetes-sigs/kustomize#3812 might be helpful. In addition, you can also try to upgrade your kubectl. My version is as follows.

> kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.8", GitCommit:"a12b886b1da059e0190c54d09c5eab5219dd7acf", GitTreeState:"clean", BuildDate:"2022-06-16T05:57:43Z", GoVersion:"go1.17.11", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-19T15:39:43Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/amd64"}

@kevin85421
Copy link
Member

This issue is the same as "Installing KubeRay Operator failing", and it is solved by upgrading kubectl (#702). Closed this issue.

@janessong
Copy link
Author

This issue is the same as "Installing KubeRay Operator failing", and it is solved by upgrading kubectl (#702). Closed this issue.

thanks very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants