3 ms·
Anyone with experience using this as a dynamic reverse proxy - I need to proxy certain requests to private container (ports) where the port isn't known until th
by nzjrs 9y ago
Anyone with experience using this as a dynamic reverse proxy - I need to proxy certain requests to private container (ports) where the port isn't known until the container is booted, and containers come up and down as users require them.
- doublerebel 9y agoeBay/fabio or Traefik.io both fit that description. Linkerd and Envoy probably do too but I have less experience with those.
- xemoka 9y agoSounds like Traefick.io mentioned above should do the trick there. Looks like an interesting tool...
- tyingq 9y agoDepending on what that private container is serving up, an API gateway might work better. Tyk is one that's written in golang. It has a rest API and hot reload, so it should be able to handle your use case of dynamically allocated ports. http://tyk.io http://tyk.io
- deleted 9y ago[deleted]
- LeonidBugaev 9y agoYou can use service discovery tools like Consul or Etcd. Basic idea that on container/app boot, you register your app to service discovery service (you give it IP and current port), and it stores information about your all running apps. After you can use consul Nginx integration (it will dynamically generate Nginx config on all updates, and will restart it). Tyk mentioned here also have Consul service integration and much more.
- zzzcpan 9y agoNginx can proxy to a server specified in a variable. All you have to do is define that variable though perl or lua to get port dynamically from somewhere, like a file.