I just spent 30-40 minutes debugging until I found out that a health-check I’d written for a services 404s, and thus failed.
This prevented consul-template from including the started service in a template, which lead to things simply not working.
The problem is, unless you click on “Health” (or look into the Consul-UI) you have no indication that anything is failing.
- The link was displayed without warning or error in the Cluster-UI
- The job was displayed without anything
Everything seemed to be working, yet consul-template didn’t include my service.
There are several ways to fix that, for example a small warning triangle for an unhealthy service would solve the problem:
It’s more important on the Jobs-page:
There you’d see on one glance that something isn’t as it should be. It’s not really a problem for experienced users, but it’s one of those things where you need to know what to look for.
Of course, that is only one possible solution, and I’m looking forward to whatever you come up with!