Hello,
I’m quite new to Consul/Nomad. I try to create a cluster of 3 server/client nodes.
I know having the same server for running Consul and Nomad in client and server is not good and recommanded. But here, I’m trying to set up that before going deeper.
I succeed to make a cluster of 3 Consul nodes. They appear to see each other.
But, if I start a service (Nomad here) on the first server, it appear on the ui of the first Consul but not in the ui of the other Consul and my both Nomad server/client don’t communicate each other.
To simplify: in the “services” page I only see the Nomad server/client of the one running on the same host of the Consul UI I’m looking. The other Consul UI of the other host don’t see the Nomad server/client running in the first host.
My 3 servers are in a private VPC with CIDR : 10.114.16.0/20.
My Consul config is:
datacenter = "fra1"
domain = "consul"
data_dir = "/opt/consul"
client_addr = "0.0.0.0"
bind_addr = "{{ GetPrivateInterfaces | include \"network\" \"10.114.16.0/20\" | attr \"address\" }}"
ui = true
server = true
bootstrap_expect = 3
encrypt = "..."
retry_join = ["provider=digitalocean region=fra1 tag_name=consul-server api_token=..."]
ports {
grpc = 8502
}
connect {
enabled = true
}
My Nomad config is:
datacenter = "fra1"
data_dir = "/opt/nomad"
bind_addr = "0.0.0.0"
server {
enabled = true
bootstrap_expect = 3
}
client {
enabled = true
}
I installed Unbound, following that : https://learn.hashicorp.com/tutorials/consul/dns-forwarding?in=consul/security-networking#unbound-setup
I also follow that to connect Nomad to Consul : https://www.nomadproject.io/docs/integrations/consul-connect
I am running an CentOS 8 with firewalld installed, opened ports are:
Consul:
{8300,8301,8302,8400,8500,8501,8502,8600}/tcp
{8301,8302,8600}/udp
Nomad:
{4646,4647,4648}/tcp
4648/udp
Is anyone has an idea ?
Thanks !