omrikiei / ktunnel

A cli that exposes your local resources to kubernetes
GNU General Public License v3.0
975 stars 75 forks source link

Does it work with Gihub codespaces? #81

Open sameer-coder opened 2 years ago

sameer-coder commented 2 years ago

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

omrikiei commented 2 years ago

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.

sameer-coder commented 2 years ago

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