diff --git a/agent/consul/leader.go b/agent/consul/leader.go index 31d197b67..7768842b8 100644 --- a/agent/consul/leader.go +++ b/agent/consul/leader.go @@ -626,8 +626,8 @@ func (s *Server) handleDeregisterMember(reason string, member serf.Member) error // joinConsulServer is used to try to join another consul server func (s *Server) joinConsulServer(m serf.Member, parts *metadata.Server) error { - // Do not join ourself - if m.Name == s.config.NodeName { + // Do not join ourself if we are the only member + if m.Name == s.config.NodeName && len(s.serfLAN.Members()) == 1 { return nil }