Hi, I’m trying to get a simple Nomad Consul Connect integration working as we pilot a POC project to migrate to Nomad from Docker Swarm. I’m following the tutorial guides and having no luck unless I run the Nomad agent in -dev mode. Here’s the error I receive when trying to run a nomad job plan:
- WARNING: Failed to place all allocations.
Task Group “api” (failed to place 1 allocation):- Resources exhausted on 3 nodes
- Dimension “network: no addresses availale for “” network” exhausted on 3 nodes
Here’s my job file:
job “foo” {
datacenters = [“oly-ci”]
group “api” {
network {
mode = “bridge”
}
service {
name = “count-api”
port = “9001”
connect {
sidecar_service {}
}
}
task “web” {
driver = “docker”
config {
image = “hashicorpnomad/counter-api:v1”
}
}
}
}
CNI plugins have been downloaded and placed in /opt/cni/bin, and I’ve added that to the PATH on the host. Any ideas what I’m doing wrong here?