Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"serf instance not initialized" in overlay netwrok on Docker Swarm cluster backed up with Consul #2268
I have a swarm cloud that works just fine.
In my usecase I create an overlay network:
And than provision 2 containers of elastic-search referring each other in a cluster (they use overlay network ip addresses). Containers cannot reach each other via overlay network
in aws virtual machine syslog:
Details of configuration:
Configuration: 4 nodes in AWS VPC (all ports are allowed for inter communication)
Each swarm-daemon has configs like:
Each node has a swarm container, running as (10.0.1.239 aws machine ip)
And consul container running as (10.0.1.239 aws machine ip)
With file * /etc/consul.d/server/config.json* being (10.0.1.241 aws machine ip):
(of course there is swarm-manager too)
I'm a network newbie and really struggled to make it work without any result.
Any help would be appreciated.
Hi @vlaskinvlad, just to double check but did you make sure you opened the following ports for networking to work on AWS:
My guess is that your AWS instances security rules are probably misconfigured and don't let the traffic go through for the above two requirements.
Hi @abronan many thanks for following up
To double check this:
Machine B works (udp protocol should not be an issue)
If it helps here is part of dmesg messages:
Any update here since I have same problem.
from docker log
There might be different problems in this thread. In @vlaskinvlad's case,
In @pilgrim2go's case, please provide your