consulnomadservicemesh

How to setup local development environment for Nomad+Consul Service Mesh


As per Hashicorp documentation on Nomad+Consul, consul service mesh cannot be run on MacOS/Windows, since it does not support bridge network.

https://www.nomadproject.io/docs/integrations/consul-connect

What is the recommended way to setup a local development environment for Nomad+Consul?


Solution

  • I'd suggest to have a look at setting up your local environment using Vagrant (which is also a product for Hashicorp) and Virtual box. There are plenty examples online, for example

    I've run the first two previous week with a simple

    vagrant up
    

    and it worked almost like a charm. I think, I needed to upgrade my VirtualBox and maybe run vagrant up multiple times because of some weird run time errors which I didn't want to debug)

    Once Vagrant finishes build you can

    vagrant ssh
    

    to get inside created VM, although configs are setup with mounting volumes/syncing files and all UI components are also exposed at the default ports.