Hey team! Good morning. Hope you’re doing well. On...
# flyte-support
t
Hey team! Good morning. Hope you’re doing well. One doubt, there might be documentation for this which I missed. When we launch a Ray job from flyte, is there a way to provide access to the ray dashboard other than port-forwarding?
f
You should be able to get the link in Flyte, but managing ingress etc is beyond Flyte. Checkout union it has a completely designed system that shows Ray dashboard, logs and metrics
a
@thankful-tailor-28399 I'll be trying this soon but seems like if you set
enableIngress="true"
as part of your
HeadNodeConfig
it should create an Ingress resource (assuming you have an Ingress controller available in your cluster). Flyte supports displaying the link in the UI but again, I haven't used it myself so I could be wrong.
f
It is tested and works, you have to configure it
t
Copy code
ray_config = RayJobConfig(
    head_node_config=HeadNodeConfig(
        ray_start_params={"log-color": "True", "enableIngress": "True"},
    ),
    worker_node_config=[
        WorkerNodeConfig(
            group_name="ray-group",
            replicas=1,
        )
    ],
)
This would be correct? @average-finland-92144
a
enableIngress
should be set at the same level as
ray_start_params
(source)
t
I’m lost on this one, sorry. https://github.com/flyteorg/flytekit/blob/master/plugins/flytekit-ray/flytekitplugins/ray/task.py#L28
HeadNodeConfig
only exposes
ray_start_params
Shouldn’t we expand that dataclass?
a
@thankful-tailor-28399 I just found exactly the same. I think @gorgeous-beach-23305 has used Ray with Ingress but no sure how 🙂 I guess this deserves a new Issue