rancher / rio

Application Deployment Engine for Kubernetes
https://rio.io
Apache License 2.0
2.27k stars 228 forks source link

Expose range of ports #1037

Open gilsdav opened 4 years ago

gilsdav commented 4 years ago

Describe the bug

I would like to expose a range of ports like in docker run

rio run -p 80:8080 -p 4000-5000:4000-5000 codercom/code-server:latest

Why ?

I use "code-server" that is the on-premise vs/github codespace. I don't know how many ports will be used

Expected behavior

-p 4000-5000:4000-5000 have to forward the specified range of ports to the container.

Alternative

I'm able to so what I need using SubPath config as indicate into https://github.com/cdr/code-server/blob/37184f456c2f59a5741721928a8ef52767d7bf70/doc/FAQ.md#sub-paths

It's not blocker so let me know if you think it's possible to implement or not :)

StrongMonkey commented 4 years ago

This is interesting :-). I look at docker docs and it seems to support it. Implementing that in Rio would be a different approach since it is backed by kubernetes.(Will need to expose ports through kubernete services).