@@ -71,7 +71,8 @@ export NAMESPACE=<namespace from above>
7171
7272Update 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
7778This 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
2532533. 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