IssueRaiser

kubectl port-forward container listener to local port

It would be great if `kubectl port-forward` offered the equivalent of `ssh -R`, such that it would open a _listening_ port on the container that forwards to a port on the local machine. I would be perfectly content if that port were only available to the container (i.e. just the 3-tuple `-R` flavor, without `bind_address`; no need to have other containers be able to connect to the port) Since there is no `kubectl cp` command that I could find, this would make for a painless way to get content into a running container via http from a workstation

Posted by mdaniel on Jan 27, 2016, 7:24 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

github (Other)

kubectl port-forward container listener to local port

mdanielJan 27, 2016, 7:24 PM

It would be great if `kubectl port-forward` offered the equivalent of `ssh -R`, such that it would open a _listening_ port on the container that forwards to a port on the local machine. I would be perfectly content if that port were only available to the container (i.e. just the 3-tuple `-R` flavor, without `bind_address`; no need to have other containers be able to connect to the port) Since there is no `kubectl cp` command that I could find, this would make for a painless way to get content into a running container via http from a workstation

Comments (0)

No comments yet. Start the discussion.

Comment on this issue