Docker 1.12 External Warm Service

Kubernetes allows you to create external IP services. In Docker Swarm, can I set an endpoint for each service separately from the node IP address?

For instance:

  node1  192.168.1.22
  node2. 192.168.1.23

My service:

  myweb1  192.168.1.101. 80

So, I would have tasks performed on each node, but the service would be available at http://192.168.1.101 .

+4
source share
1 answer

You can not. A service in Swarm mode can only be assigned to an Overlay network, therefore, a service cannot be transferred to a host network without any bridge (for example: using the option --publish).

, ( Overlay) Swarm ip , , node.

+3

Source: https://habr.com/ru/post/1654213/


All Articles