Running a Local Consul Agent while Developing in WSL2
While working with DevOps projects that utilize a Consul KV store and it’s service discovery features, I found it useful to replicate a local agent to test against. To that end, getting a Consul agent up and running and accessible from both Windows and WSL2 proved usesful.
TBH, this is a brittle setup; it’s far easier to just manage your Consul environment variables to point where needed instead. Consul Agent Setup in Windows Download the Consul binaries from Hashicorp for Windows here.