Closed roobert closed 9 years ago
Doesn't seem to have been activity in this repo since July, @BrianHicks, is this project still active?
Thanks,
@roobert this project is still active, but it is Sunday. We've been using this project on several clusters.
We're also looking at using http://traefik.github.io instead of marathon -> haproxy-consul. If traefik works out in our clusters, we'll probably reduce support for this project.
@stevendborrelli, ahh I appreciate it's a Sunday so thank you for your reply. It's a shame I can't seem to get this going after a few hours of trying different things and poking around in the source code.
Traefik looks really interesting so I'll give that a go, thanks for the tip!
After having a look at Traefik it looks great but also quite new and somewhat limited.
I would love to get marathon-console going with consul-template and haproxy so any advice would be greatly appreciated.
@roobert can you try setting --registry-prefix
to http?
Also, we don't recommend running consul in a docker container.
Hi @stevendborrelli, I've just tried with --registry-prefix
set, but still get the same error.
I've attached a load more debug info to this gist, thanks very much for you advice so far: https://gist.github.com/roobert/ffd48a43fc73950094a9
I'll give running consul on the host a go but I'm not sure that will make much difference as the docker instance will still be connecting to it's own address.
Cheers,
As expected, no difference.
I can only think that somewhere in the code the config is being overwritten with the default or there's a race condition (although that wouldn't explain later refreshes).
The only thing I can think left to try is changing the default in the code and recompiling, unless you have any other ideas?
Cheers,
Try changing --registry=172.17.42.1:8500
to --registry=http://172.17.42.1:8500
. marathon-consul
uses the net/url
package that requires a scheme to parse properly.
Aaaaaaahhhh!!!! That fixed it, thank you kindly, I should've spotted it.
Thanks again and thanks for this great project!
Reopening so we can get a warning in the logs in a future version
Hi,
I'm running marathon-consul as a docker instance deployed by puppet, here is the process:
As you can see, I've specified the registry and marathon locations to be the docker bridge IP.
Then I start marathon with the callback flag and create a callback:
I've also tried creating a callback with docker bridge IP:
In both instances when running
marathon-consul
in debug mode, I see the following:I can't seem to work out why the query is going to '127.0.0.1:8500' rather than the configured registry address. Any help would be appreciated!
Cheers,