moby / swarmkit

A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.
Apache License 2.0
3.3k stars 607 forks source link

Add template support for network aliases #2249

Open benturner opened 7 years ago

benturner commented 7 years ago

This is at least a piece of #2207...

cirocosta commented 6 years ago

👍 👍

A use-case:

If svc1 can template its network-alias, then it can include {{.Node.Id}} such that svc2 can use its node-id to target the svc1 instance in that machine.

mustafaakin commented 6 years ago

Any updates on this? Definetely useful

iTaybb commented 6 years ago

Any update?

stepan-romankov commented 5 years ago

?

firecow commented 5 years ago

I would also like this. Its especially useful, when running a seperate nginx and php service accross multiple nodes. And you only want nginx-node01 to hit php-node01, because you are using an external HOST loadbalancer like Cloudflare. Right now the only option I have is to make a "merged" service, using supervisord, and that doesn't seem very docker like.

tom-x1 commented 4 years ago

I would also like to use this to run an Elasticsearch Cluster with Metricbeat

upcFrost commented 4 years ago

Any updates??? Using templates and making alias stick to the hostname solves a lot of problems with node-bound software like zookeeper and Kafka