Skip to content

[Feature][kubectl-plugin] Run port-forward in a goroutine and retry if the connection fails #2388

@kevin85421

Description

@kevin85421

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

#2379 (comment)

If we port-forward a K8s service, it will select a Pod under the hood. If the Pod is killed, the port-forward command will not automatically switch to another K8s service endpoint. Instead, we need to run the port-forward command again. Hence, we currently forward the RayCluster service instead of RayService service for now.

If we run the port-forward in a separate goroutine and retry if the connection fails, we can use RayService's K8s service which makes more sense.

Chatted with Chi-Sheng. The port-forward command disconnects when the selected Pod is killed and the port receives a new request.

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions