Use bind address for consul healtchecks in nomad client too
This commit is contained in:
parent
c0ff732513
commit
06909d2465
|
@ -521,6 +521,9 @@ func (a *Agent) setupClient() error {
|
|||
},
|
||||
},
|
||||
}
|
||||
if a.config.Addresses.HTTP != "" && a.config.Addresses.HTTP != "0.0.0.0" {
|
||||
httpServ.Checks[0].PortLabel = net.JoinHostPort(a.config.Addresses.HTTP, strconv.Itoa(a.config.Ports.HTTP))
|
||||
}
|
||||
a.consulSyncer.SetServices(consul.ClientDomain, map[consul.ServiceKey]*structs.Service{
|
||||
consul.GenerateServiceKey(httpServ): httpServ,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue