mc-router icon indicating copy to clipboard operation
mc-router copied to clipboard

HashiCorp Nomad support

Open lobo235 opened this issue 3 years ago • 2 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.

lobo235 avatar Oct 03 '22 16:10 lobo235

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.

itzg avatar Oct 03 '22 19:10 itzg

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?

jcotton42 avatar Apr 29 '23 20:04 jcotton42