HashiCorp Nomad support
lobo235 opened this issue · comments
Would love to be able to use mc-router easily in my Nomad clusters. It would great if I could tag a service with something like mc-router-register
on my various Minecraft containers' service
stanzas and have them auto-mapped in mc-router. Or, if there was a way to read the data from Consul to populate the mapped list of Minecraft servers that would be awesome too.
If you could help locate Nomad APIs specifically for container label lookups, then that would be great. I'm guessing it's pretty similar or identical to the docker APIs.
I'm very green on nomad (only started playing with it today) but looking at the mc-router docs, there appears to be a config file.
-routes-config string
The path to the routes config file (env ROUTES_CONFIG)
I couldn't find any docs on this in the repo, but between that and the template
block in the mc-router task in nomad, maybe you could put something together?