gvisor icon indicating copy to clipboard operation
gvisor copied to clipboard

Support Kubernetes port forwarding

Open ianlewis opened this issue 5 years ago • 5 comments

Currently port forwarding doesn't work for gVisor because the port needs to be forwarded from inside the sandbox.

ianlewis avatar Aug 30 '20 23:08 ianlewis

Related: https://github.com/kubernetes/enhancements/issues/1846 containerd/containerd#6638

ianlewis avatar Aug 30 '20 23:08 ianlewis

@ianlewis is there any alternative to port-forwarding with gVisor at the moment?

tomenden avatar Dec 20 '23 14:12 tomenden

@ianlewis is there any alternative to port-forwarding with gVisor at the moment?

@tomenden would you mind sharing the use case where you use port forward?

milantracy avatar Dec 20 '23 20:12 milantracy

@tomenden would you mind sharing the use case where you use port forward?

@milantracy Sure. I have a process running node.js in a container and I would like to be able to debug it remotely. This is very powerful, and works perfectly without gVisor.

See this blog post for reference.

tomenden avatar Dec 20 '23 21:12 tomenden

There has been some progress to implement port forwarding on the gVisor side in #8391 and #8785 but IIRC containerd still requires some changes to the shim protocol to make this work.

https://github.com/containerd/containerd/issues/6638 is where that work is tracked.

ianlewis avatar Jan 10 '24 01:01 ianlewis