hera
hera copied to clipboard
Multiple hostnames/ports per container
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.
I'd like to see this same functionality as well. A service I use has a dedicated web sockets port.