Skip to content

Commit

Permalink
Update the KubeRay-related docs to v0.6.0 (ray-project#37833)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin85421 committed Jul 28, 2023
1 parent cf4d7d1 commit 79859ab
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ kubectl apply -f https://raw.githubusercontent.com/GoogleCloudPlatform/container
# (Method 2) "gcloud container clusters get-credentials <your-cluster-name> --region <your-region> --project <your-project>"
# (Method 3) "kubectl config use-context ..."

# Install both CRDs and KubeRay operator v0.5.0.
# Install both CRDs and KubeRay operator v0.6.0.
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
helm install kuberay-operator kuberay/kuberay-operator --version 0.5.0
helm install kuberay-operator kuberay/kuberay-operator --version 0.6.0

# Create a Ray cluster
kubectl apply -f https://raw.githubusercontent.com/ray-project/ray/master/doc/source/cluster/kubernetes/configs/ray-cluster.gpu.yaml
Expand Down Expand Up @@ -114,7 +114,7 @@ It is optional.
# Step 2: Deploy a Ray cluster on Kubernetes with the KubeRay operator.
# Create the KubeRay operator
helm repo add kuberay https://ray-project.github.io/kuberay-helm/
helm install kuberay-operator kuberay/kuberay-operator --version 0.5.0
helm install kuberay-operator kuberay/kuberay-operator --version 0.6.0

# Create a Ray cluster
kubectl apply -f https://raw.githubusercontent.com/ray-project/ray/master/doc/source/cluster/kubernetes/configs/ray-cluster.gpu.yaml
Expand Down
16 changes: 13 additions & 3 deletions doc/source/cluster/kubernetes/getting-started.ipynb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"id": "f34f1b75",
"metadata": {},
Expand Down Expand Up @@ -33,6 +34,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "656a0707",
"metadata": {},
Expand Down Expand Up @@ -97,8 +99,8 @@
"source": [
"! helm repo add kuberay https://ray-project.github.io/kuberay-helm/\n",
"\n",
"# Install both CRDs and KubeRay operator v0.5.0.\n",
"! helm install kuberay-operator kuberay/kuberay-operator --version 0.5.0\n",
"# Install both CRDs and KubeRay operator v0.6.0.\n",
"! helm install kuberay-operator kuberay/kuberay-operator --version 0.6.0\n",
"\n",
"# Confirm that the operator is running in the namespace `default`.\n",
"! kubectl get pods\n",
Expand All @@ -116,6 +118,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "e1fdf3f5",
"metadata": {},
Expand All @@ -140,7 +143,7 @@
"outputs": [],
"source": [
"# Deploy a sample RayCluster CR from the KubeRay Helm chart repo:\n",
"! helm install raycluster kuberay/ray-cluster --version 0.5.0\n",
"! helm install raycluster kuberay/ray-cluster --version 0.6.0\n",
"\n",
"# Once the RayCluster CR has been created, you can view it by running:\n",
"! kubectl get rayclusters\n",
Expand All @@ -150,6 +153,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "d4bd4e47",
"metadata": {},
Expand Down Expand Up @@ -203,6 +207,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "4fab157b",
"metadata": {},
Expand All @@ -211,6 +216,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "b63e1ab9",
"metadata": {},
Expand Down Expand Up @@ -246,6 +252,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "fa9c6e9d",
"metadata": {},
Expand Down Expand Up @@ -275,6 +282,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "57b3c759",
"metadata": {},
Expand All @@ -298,6 +306,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "ec66649c",
"metadata": {},
Expand Down Expand Up @@ -393,6 +402,7 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"id": "99a76c96",
"metadata": {},
Expand Down
4 changes: 2 additions & 2 deletions python/ray/autoscaler/kuberay/init-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# Clone pinned Kuberay commit to temporary directory, copy the CRD definitions
# into the autoscaler folder.
KUBERAY_BRANCH="v0.5.0"
OPERATOR_TAG="v0.5.0"
KUBERAY_BRANCH="v0.6.0"
OPERATOR_TAG="v0.6.0"

# Requires Kustomize
if ! command -v kustomize &> /dev/null
Expand Down
2 changes: 1 addition & 1 deletion release/k8s_tests/run_gcs_ft_on_k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def generate_cluster_variable():

def check_kuberay_installed():
# Make sure the ray namespace exists
KUBERAY_VERSION = "v0.5.0"
KUBERAY_VERSION = "v0.6.0"
uri = (
"github.com/ray-project/kuberay/manifests"
f"/base?ref={KUBERAY_VERSION}&timeout=90s"
Expand Down

0 comments on commit 79859ab

Please sign in to comment.