-
Notifications
You must be signed in to change notification settings - Fork 594
Open
Labels
Description
Search before asking
- I had searched in the issues and found no similar feature requirement.
Description
Currently, the kubectl-plugin, and in particular the job submit command, relies exclusively on port-forwarding to localhost:8265
, explicitly disabling support for the --address
flag.
This is limiting in environments where:
- Port-forwarding is not feasible or desired.
- The Ray Dashboard is reachable at a stable, authenticated, or externally exposed URL.
Proposal
Enable a single flag on kubectl ray job submit:
--address
: Ray Dashboard base URL (e.g., https://ray.example.com). When set, the plugin skips port-forwarding and passes the URL to ray job submit --address
.
Behavior
- Default (no flag): port-forward to
http://localhost:8265
(current behavior). - With
--address
: no port-forward; use the provided URL. - Validation: require a valid http(s) URL and normalize (trim trailing slash). Existing flags like
--headers
,--verify
, etc., continue to pass through.
Benefits
- Supports direct submission to dashboards reachable via authenticated/public endpoints, load balancers, VPNs, tunnels, or service meshes.
- Simpler UX with a single flag and no new modes.
- Preserves backward compatibility.
Use case
Submit Ray jobs via a secure, reachable endpoint instead of relying solely on localhost port-forwarding.
Related issues
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
martynas-subonis