Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tedhtchang opened this issue Jun 22, 2023 · 0 comments
Open
Assignees

Comments

@tedhtchang
Copy link
Member

tedhtchang commented Jun 22, 2023

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant