kuberay icon indicating copy to clipboard operation
kuberay copied to clipboard

[Bug] error: git cmd when following docs

Open tekumara opened this issue 3 years ago • 2 comments

Search before asking

  • [X] I searched the issues and found no similar issues.

KubeRay Component

ray-operator

What happened + What you expected to happen

Following the docs here:

$ kubectl apply -k "github.com/ray-project/kuberay/ray-operator/config/crd?ref=v0.3.0" 

error: git cmd = '/usr/local/bin/git fetch --depth=1 origin v0.3.0': exit status 128

Reproduction script

See above

Anything else

No response

Are you willing to submit a PR?

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

tekumara avatar Jun 04 '22 07:06 tekumara

Thanks for reporting the issue and I will fix the doc. Please use latest or v0.2.0.

Jeffwan avatar Jun 04 '22 13:06 Jeffwan

This still happens when following the docs for the nightly version:

export KUBERAY_VERSION=master
kubectl create -k "github.com/ray-project/kuberay/manifests/cluster-scope-resources?ref=${KUBERAY_VERSION}&timeout=90s"

I think the problem is the timeout=90s param is not supported.

tekumara avatar Sep 18 '22 10:09 tekumara

  • I can reproduce this issue with kubectl v1.21.0
$ kubectl create -k "github.com/ray-project/kuberay/manifests/cluster-scope-resources?ref=${KUBERAY_VERSION}&timeout=90s"
error: git cmd = '/usr/local/bin/git fetch --depth=1 origin v0.3.0&timeout=90s': exit status 128

$ kubectl version --client=true --short=true
Client Version: v1.21.0
  • Fix this issue by updating kubectl to v1.22.0+
$ kubectl create -k "github.com/ray-project/kuberay/manifests/cluster-scope-resources?ref=${KUBERAY_VERSION}&timeout=90s"
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

$ kubectl version --client=true --short=true
Client Version: v1.22.0
  • You can upgrade your kubectl by the following commands
curl -LO "https://dl.k8s.io/release/v1.22.0/bin/darwin/amd64/kubectl"
chmod +x kubectl
sudo cp kubectl $YOUR_PATH

I will update the document and recommend you deploy the operator with the Helm chart. Thank you for reporting this issue!

kevin85421 avatar Dec 10 '22 01:12 kevin85421