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.38k stars 616 forks source link

Docker swarm routing mesh not working #3001

Open kaplan441 opened 3 years ago

kaplan441 commented 3 years ago

Hi everyone,

I have two nodes as docker swarm manager&worker.

Os : RHEL 8

Docker version : 20.10.5

I executed this command on node1.

docker swarm init

Then i executed this command on node1 and executed output of this command on node2.

docker swarm join-token manager

After that;

docker node ls

output on node1 and node2:

Two node status READY, availability Active, docker version 20.10.5 etc

Two nodes are at same network. Firewall,etc is disabled. I checked required ports also.

When i create a service 1 replicate which is running on 8000 port, service creates succesfully for example on node1.

curl node1:8000 ok

curl node2:8000 connection refused. But i execute netstat this port is open on node2. I expect docker swarm routing mesh redirect request to working instance. Docker swarm routing mesh

I checked docker logs, etc. I didnt see anything for this case.

Please help, what can i do for this problem?

Thanks.

weiklr commented 3 years ago

I have the same problem as well. I created a docker swarm cluster on 4 nodes and they couldn't connect and talk to each other. The nodes are all rhel 8.3. I have a similar setup on ubuntu 20.04 and it works