Open TheisFerre opened 1 year ago
@TheisFerre,
Is it possible for you to use Ray job submission (https://docs.ray.io/en/releases-2.6.1/cluster/running-applications/job-submission/index.html) instead of Ray client (we don't recommend using ray client anymore)
I am trying to connect to my ray-cluster with prefect, which means I will need to use the client.
Does your response mean that it is not possible to connect to the client through an ingress?
What happened + What you expected to happen
I am running a ray-cluster inside my kubernetes cluster. I have exposed the dashboard over HTTPS using an nginx ingress which works as expected.
With the dashboard exposed i can submit a simple
hello-world
job using the Ray CLI tool as follows:When reading the documentation, it seems that if i want to submit a job directly inside my python script (instead of using the CLI), i need to add the address of the ray-client inside the
ray.init()
method. Here i should specify the address to the ray-client running on theray-cluster-head
pod.For this, i added an additional ingress resource that uses
GRPC
to target theray-client
. I followed the sample given here.Running the modified script below with
python script.py
Results in connection timeout error.
Versions / Dependencies
ray-cluster helmchart version: 0.6.0 python: 3.11.4 Ray version installed in python environment: 2.6.3 kubernetes version 1.26.3
Reproduction script
Install ray in a kubernetes cluster with nginx-ingress and add ingress for client:
Now run script below where you point towards the exposed service from the ingress
Issue Severity
High: It blocks me from completing my task.