ktunnel icon indicating copy to clipboard operation
ktunnel copied to clipboard

Does it work with Gihub codespaces?

Open sameer-coder opened this issue 2 years ago • 2 comments

It is mentioned in the README "Although ktunnel is identified with kubernetes, it can also be used as a reverse tunnel on any other remote system"

Is there anyway I can use ktunnel to expose local resources(webserver) so that they can be accessed from within the GitHub codespaces container?

Thanks

sameer-coder avatar May 25 '22 11:05 sameer-coder

Good question, in order for that to work you would need the following:

  1. a way to orchestrate ktunnel as a listener server in the codespaces container. From looking at the codespaces docs, you can add it in the Dockerfile and run it.
  2. reaching the server from the local machine to create the reverse tunnel, I think you should be able to have that as that is how VS-code connects to codespaces.

So overall I would say that it looks like it's possible, but I haven't given it a try yet... I haven't gotten around to working with codespaces yes, but I'll try to get there soon for a POC. in the meanwhile if you get this up and running it would be great to know.

omrikiei avatar May 27 '22 05:05 omrikiei

I will give it a try and report back in case I succeed in making it work for codespaces. Thanks!

sameer-coder avatar May 28 '22 08:05 sameer-coder