2 ms·
Because a lot of software stuff is written without intrinsic support for service discovery, which means all kinds of hacks (e.g. proxying; dynamically rewriting
by vidarh 11y ago
Because a lot of software stuff is written without intrinsic support for service discovery, which means all kinds of hacks (e.g. proxying; dynamically rewriting config files and reloading) to work around it if the ports may change. With an IP per container, things like low TTL DNS tied to a service registry (e.g. Consul, or SkyDNS with something to update Etcd) is viable and often a much easier alternative.
I agree with you from a purity point of view that proper service-discovery is better, but in terms of practicality, IP per container is often a lot simpler to implement.
- toast0 11y agoThis is all for your internal network though, which you should be able to control, right?
- vidarh 11y agoHaving control of your internal network does not fix missing service discovery support in all the applications you're running that likes to assume that port numbers are static and unchanging.