Skip to content

Create local_client_url() cluster method to return the local client url #173

Open
@tedhtchang

Description

@tedhtchang

The PR tracks the following issues:

  1. Get rid of the following code in the notebook in this PR:
    The conversation.
with oc.project(cluster.config.namespace):
    routes=oc.selector("route").objects()
    rayclient_url=""
    for r in routes:
        if "rayclient" in r.name():
            rayclient_url=r.model.spec.host
ray.init(address=f"ray://{rayclient_url}", logging_level="DEBUG")

and create a local_client_url() method so we only need to do:

ray.init(address=cluster.local_client_url(), logging_level="DEBUG")

(Edited)

  1. Also remove the oc.whoami with the k8s client implementation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions