moby / swarmkit

A toolkit for orchestrating distributed systems at any scale. It includes primitives for node discovery, raft-based consensus, task scheduling and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker swarm routing mesh not working

kaplan441 opened this issue · comments

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.

  • TCP port 2377 for cluster management communications

  • TCP and UDP port 7946 for communication among nodes

  • UDP port 4789 for overlay network traffic

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.

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