How I run a server and client on the same node.
Below is an example of my server.hcl
. I bind Nomad to a my internal interface and the ELB will talk to it.
bind_addr = "0.0.0.0"
advertise {
http = "X:4646"
rpc = "Y:4647"
serf = "Z:4648"
}
data_dir = "/opt/nomad/data"
datacenter = "DC1"
region = "prod"
enable_syslog = "true"
syslog_facility = "LOCAL0"
log_level = "INFO"
server {
enabled = true
bootstrap_expect = 1
authoritative_region = "prod"
}
client {
enabled = true
}
You can control what Nomad is advertised on with the bind
address and what you communicate over with advertise address
.
Sorry - I may be missing something here.