hera icon indicating copy to clipboard operation
hera copied to clipboard

Multiple hostnames/ports per container

Open danelowe opened this issue 6 years ago • 1 comments

There are a few use cases for allowing a single container to serve multiple hostnames via either the same port, or different ports.

E.g.

www.mydomain.co.nz        -> mycontainer:8080
www.mydomain.com.au       -> mycontainer:8080
admin.mydomain.co.nz      -> mycontainer:8081
api.mydomain.co.nz        -> camel:8081
privateapi.mydomain.co.nz -> camel:8082
...

The current labelling system does not appear to allow for this kind of flexibility. I am wondering if this might be either changed or extended.

In some cases, this could be worked around by creating duplicate services for each hostname. However, it may not always be practical if numerous hostnames are required.

In my case, it would not be desirable to multiply the number of running containers, because I need to dedicate quite a bit of memory to each instance, some of which may receive relatively little traffic.

danelowe avatar May 27 '19 21:05 danelowe

I'd like to see this same functionality as well. A service I use has a dedicated web sockets port.

gregg098 avatar Jul 13 '19 05:07 gregg098