Skip to content

Commit ac9e6e5

Browse files
authored
Merge branch 'main' into klwuibm-patch-1
2 parents 1f826e9 + 27dd95d commit ac9e6e5

File tree

6 files changed

+2350
-1913
lines changed

6 files changed

+2350
-1913
lines changed

deploy/ibm_cloud_code_engine/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export NAMESPACE=<namespace from above>
5151

5252
Update With the following command you can download a basic Ray cluster definition and customize it for your namespace:
5353
```shell
54-
sed "s/NAMESPACE/$NAMESPACE/" > ./example-cluster.yaml
54+
cd ./deploy/ibm_cloud_code_engine/
55+
sed "s/NAMESPACE/$NAMESPACE/" ./example-cluster.yaml.template > ./example-cluster.yaml
5556
```
5657

5758
This reference deployment file will create a Ray cluster with following characteristics:

deploy/ibm_cloud_code_engine/example-cluster.yaml renamed to deploy/ibm_cloud_code_engine/example-cluster.yaml.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ provider:
2626
use_internal_ips: true
2727

2828
# Namespace to use for all resources created.
29-
namespace:
29+
namespace: NAMESPACE
3030

3131
services:
3232
# Service that maps to the head node of the Ray cluster.
@@ -120,7 +120,7 @@ available_node_types:
120120
spec:
121121
# Change this if you altered the autoscaler_service_account above
122122
# or want to provide your own.
123-
serviceAccountName: ap9fjwkf04j-writer
123+
serviceAccountName: NAMESPACE-writer
124124

125125
restartPolicy: Never
126126

docs/source/getting_started/starting.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export NAMESPACE=<namespace from above>
7171

7272
Update With the following command you can download a basic Ray cluster definition and customize it for your namespace:
7373
```shell
74-
sed "s/NAMESPACE/$NAMESPACE/" > ./example-cluster.yaml
74+
cd ./deploy/ibm_cloud_code_engine/
75+
sed "s/NAMESPACE/$NAMESPACE/" ./example-cluster.yaml.template > ./example-cluster.yaml
7576
```
7677

7778
This reference deployment file will create a Ray cluster with following characteristics:
@@ -163,17 +164,16 @@ pip3 install -r requirements.txt
163164
Assuming openshift cluster access from pre-reqs.
164165

165166
a) Create namespace
166-
167-
```
167+
```shell
168168
$ oc create namespace codefalre
169169
namespace/codeflare created
170170
$
171-
```
172-
171+
```
172+
173173
b) Bring up Ray cluster
174-
175-
```
176-
$ ray up ray/python/ray/autoscaler/kubernetes/example-full.yaml
174+
175+
```
176+
$ ray up ray/python/ray/autoscaler/kubernetes/example-full.yaml
177177
Cluster: default
178178
179179
Checking Kubernetes environment settings
@@ -247,8 +247,8 @@ pip3 install -r requirements.txt
247247
Connect to a terminal on the cluster head:
248248
ray attach /Users/darroyo/git_workspaces/github.com/ray-project/ray/python/ray/autoscaler/kubernetes/example-full.yaml
249249
Get a remote shell to the cluster manually:
250-
kubectl -n ray exec -it ray-head-ql46b -- bash
251-
```
250+
kubectl -n ray exec -it ray-head-ql46b -- bash
251+
```
252252

253253
3. Verify
254254
a) Check for head node
@@ -262,7 +262,7 @@ pip3 install -r requirements.txt
262262
b) Run example test
263263

264264
```
265-
ray submit python/ray/autoscaler/kubernetes/example-full.yaml x.py
265+
ray submit ray/python/ray/autoscaler/kubernetes/example-full.yaml x.py
266266
Loaded cached provider configuration
267267
If you experience issues with the cloud provider, try re-running the command with --no-config-cache.
268268
2021-02-09 08:50:51,028 INFO command_runner.py:171 -- NodeUpdater: ray-head-ql46b: Running kubectl -n ray exec -it ray-head-ql46b -- bash --login -c -i 'true && source ~/.bashrc && export OMP_NUM_THREADS=1 PYTHONWARNINGS=ignore && (python ~/x.py)'
@@ -276,4 +276,4 @@ Jupyter setup demo [Reference repository](https://github.com/erikerlandson/ray-o
276276

277277
### Running examples
278278

279-
Once in a Jupyer envrionment, refer to [notebooks](../../notebooks) for example pipeline. Documentation for reference use cases can be found in [Examples](https://codeflare.readthedocs.io/en/latest/).
279+
Once in a Jupyer envrionment, refer to [notebooks](../../notebooks) for example pipeline. Documentation for reference use cases can be found in [Examples](https://codeflare.readthedocs.io/en/latest/).

0 commit comments

Comments
 (0)