Skip to content

Simple service discovery for .NET Aspire and Hashicorp Nomad

License

Notifications You must be signed in to change notification settings

lvermeulen/ServiceDiscovery.Nomad

Repository files navigation

ServiceDiscovery.Nomad

Simple service discovery for .NET Aspire and Hashicorp Nomad

Usage

Add package ServiceDiscovery.Nomad to your Aspire ServiceDefaults project.

dotnet add package ServiceDiscovery.Nomad

In your Aspire ServiceDefaults project, replace the following:

~~builder.Services.AddServiceDiscovery();~~

with

builder.Services.AddNomadServiceDiscovery();

and you're good to go.

How it works

ServiceDiscovery.Nomad uses the Nomad environment variables NOMAD_ADDR_* to connect to the correct service. Simple, right?

About

Simple service discovery for .NET Aspire and Hashicorp Nomad

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages