I
I
Ilya Rodionov2019-07-14 10:42:46
ubuntu
Ilya Rodionov, 2019-07-14 10:42:46

How docker-swarm allow local network access?

Colleagues, good afternoon.
There is a docker-swarm cluster on which instances are spinning. Some of them are related to the web, and I want to screw authorization into them using LDAP.
As far as I know, in docker, each stack has its own overlay2fs network (unless, of course, it is set by hand), its peculiarity is that it does not allow access to the host network , however, it allows all docker nodes to communicate with each other if necessary.
But a problem arose: how in a docker cluster to allow access to the local network of one of the hosts in order to fasten LDAP, which is not in the overlay2fs network?
That is, all hosts, for example, are on the network 192.168.1.0/24, the LDAP server is 1.15.
All nodes are located on servers, for example, 1.20-1.50
At the same time, an instance with a front on which you need to fasten ldap can walk around any docker node.
The question is actually this: how do you solve such problems within the framework of docker and its architecture? I know there is a :host network, but something went wrong with it and, to be honest, I don't really think it's the best-practice. There is a theory to do it all through a WHITE ip address, but it's also pretty weird.
I also thought about some tunnels, but so far I can’t think of a case how it will work.
How would you decide this? Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2019-07-14
@q2digger

Have you tried simply making a ping from the network overlay to the ldap server you need?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question