I have substantially newer versions of everything, and yet the same problem. I’m not really sure how to diagnose it.
I don’t have any host_network
defined. I’ve simply been trying to follow the tutorial here: Consul Connect | Nomad by HashiCorp
My environment:
root@kain:~# nomad version
Nomad v1.0.2 (4c1d4fc6a5823ebc8c3e748daec7b4fda3f11037)
root@kain:~# consul version
Consul v1.9.1
Revision ca5c38943
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
My consul checks are failing:
I also get a warning, but I’m not sure if it’s a red herring, from nomad job plan
Scheduler dry-run:
- WARNING: Failed to place all allocations.
Task Group "api" (failed to place 1 allocation):
* Constraint "${attr.cpu.arch} = amd64": 1 nodes excluded by filter
* Resources exhausted on 1 nodes
* Dimension "network: no addresses available for \"\" network" exhausted on 1 nodes
This may simply be because I have one node excluded as it’s an arm64 node, and the demo containers don’t have arm64 images, so I set that constraint to only include amd64 hosts.
constraint {
attribute = "${attr.cpu.arch}"
value = "amd64"
}