consul.address config doesn't interpolate GetInterfaceIP, or use CONSUL_HTTP_ADDR #11062
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/config
type/enhancement
Nomad version
Nomad v1.1.3 (8c0c814)
Operating system and Environment details
Ubuntu 20.04.2 LTS running on GCE
Issue
The consul stanza doesn't interpolate values for the address field. It also doesn't use
CONSUL_HTTP_ADDR
if you don't set the stanza.Reproduction steps
Add this consul stanza to
/etc/nomad.d/nomad.hcl
:Alternatively, set
CONSUL_HTTP_ADDR
to the correct value and omit the stanza.Expected Result
Nomad sets the consul address to the IP address bound to the
tailscale0
interface, e.g.100.123.45.67:8500
, or usesCONSUL_HTTP_ADDR
if no address is set.Actual Result
Nomad doesn't register with consul. There is a warning in the output:
The relevant part being the non-interpolated value
Get "http://%7B%7B%20GetInterfaceIP%20\"tailscale0\"%20%7D%7D:8500/v1/agent/services"
The text was updated successfully, but these errors were encountered: