devspace-sh / devspace

DevSpace - The Fastest Developer Tool for Kubernetes ⚡ Automate your deployment workflow with DevSpace and develop software directly inside Kubernetes.
https://devspace.sh
Apache License 2.0
4.31k stars 361 forks source link

Support ngrok #819

Closed chasebolt closed 2 years ago

chasebolt commented 4 years ago

As a user, I would like to be able to publicly share my development app. It would be nice to run devspace share that would create a ngrok tunnel for the kube proxy forwarding. This is a similar flow to other services such as valet share and lando share.

/kind feature

LukasGentele commented 4 years ago

Are you working with a localhost cluster such as Docker Kubernetes or minikube?

chasebolt commented 4 years ago

I have a mix. Some clients are dead set on using minikube and sticking with local development, while others prefer the flexibility of using a remote cluster. Clients that use a remote cluster we can jump through some hoops and setup an ingress for them, but this also makes it more of a permanent setup. Keeping development not public by default is preferred.

LukasGentele commented 4 years ago

Makes sense. For the ones using remote clusters, you can suggest the command devspace open which creates ingresses on the fly. For local clusters, we could think about adding a command like you are suggesting. Thanks for suggesting this feature, @chasebolt.

Inlets might be a project that we could integrate for this purpose: https://github.com/inlets/inlets

@FabianKramm: What's your take on this?

chasebolt commented 4 years ago

Honestly, I forgot about devspace open as I am used to just using devspace dev when developing. Bringing inlets to devspace open would be rad @LukasGentele :+1:

FabianKramm commented 4 years ago

Yes sounds good, but I would rather make this an option in devspace open than a complete new command

alexellis commented 4 years ago

Hey folks, if you need help with inlets, feel free to ask

LukasGentele commented 4 years ago

Thanks, @alexellis! Appreciate you reaching out. inlets is a great project and I think it is a nice addition to devspace open (which only creates an ingress on-demand). Integrating inlets directly into devspace is probably not a top priority right now because I think users can leverage commands and hooks in devspace.yaml to run inlets commands as part of their devspace workflows. However, we should definitely add a docs page or a tutorial with ways to use inlets+devspace.

alexellis commented 2 years ago

No worries @LukasGentele

If devspace has a built-in terminal, feel free to try it out, it should just work.