Skip to content

[Feature] Support --address flag for kubectl-plugin ray job submit #3921

@JosefNagelschmidt

Description

@JosefNagelschmidt

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions