Skip to content

Commit

Permalink
Undo changes to GKE cluster create doc
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan O'Leary <[email protected]>
  • Loading branch information
ryanaoleary committed Feb 4, 2025
1 parent d3622bf commit 21dcad5
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions doc/source/cluster/kubernetes/user-guides/gcp-gke-tpu-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,10 @@ See the [GKE documentation](<https://cloud.google.com/kubernetes-engine/docs/how

## Step 1: Create a Kubernetes cluster on GKE

Run the following commands on your local machine or on the [Google Cloud Shell](https://cloud.google.com/shell). If running from your local machine, install the [Google Cloud SDK](https://cloud.google.com/sdk/docs/install). The following examples use v4 TPU nodes, which are available in the us-central2-b compute region. For more information on TPU versions and their availability by region and zone, see [Plan TPUs in GKE](https://cloud.google.com/kubernetes-engine/docs/concepts/plan-tpus).
Run the following commands on your local machine or on the [Google Cloud Shell](https://cloud.google.com/shell). If running from your local machine, install the [Google Cloud SDK](https://cloud.google.com/sdk/docs/install).

### GKE Autopilot
Create a Standard GKE cluster and enable the Ray Operator in the us-central2-b compute region:

Create an Autopilot GKE cluster with the Ray Operator enabled:
```sh
gcloud container clusters create-auto kuberay-tpu-cluster \
--enable-ray-operator \
--cluster-version=1.30 \
--location=us-central2
```

### GKE Standard
Create a Standard GKE cluster with the Ray Operator in the us-central2-b compute region:
```sh
gcloud container clusters create kuberay-tpu-cluster \
--addons=RayOperator \
Expand All @@ -35,9 +25,9 @@ Create a node pool with a single-host TPU topology as follows:
gcloud container node-pools create tpu-pool \
--zone us-central2-b \
--cluster kuberay-tpu-cluster \
--num-nodes 0 \
--num-nodes 1 \
--min-nodes 0 \
--max-nodes 4 \
--max-nodes 10 \
--enable-autoscaling \
--machine-type ct4p-hightpu-4t \
--tpu-topology 2x2x1
Expand All @@ -49,9 +39,9 @@ Alternatively, create a multi-host node pool as follows:
gcloud container node-pools create tpu-pool \
--zone us-central2-b \
--cluster kuberay-tpu-cluster \
--num-nodes 0 \
--num-nodes 2 \
--min-nodes 0 \
--max-nodes 4 \
--max-nodes 10 \
--enable-autoscaling \
--machine-type ct4p-hightpu-4t \
--tpu-topology 2x2x2
Expand Down

0 comments on commit 21dcad5

Please sign in to comment.