Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nomad): add nomad service discovery #10915

Merged
merged 3 commits into from
Jun 30, 2022

Conversation

attachmentgenie
Copy link
Contributor

@attachmentgenie attachmentgenie commented Jun 25, 2022

This PR introduces a new service discovery plugin that adds support for the recently announced build service discovery for HashiCorp Nomad. [1][2]. This new plugin will be modeled on the existing Consul plugin.

This PR has implemented the following

  • Sane defaults
  • Support all labels
  • Support all connection parameters
  • Docs
  • Tests

[1] https://www.hashicorp.com/blog/nomad-1-3-adds-native-service-discovery-and-edge-workload-support
[2] https://learn.hashicorp.com/tutorials/nomad/schedule-edge-services

Signed-off-by: Bram Vogelaar bram@attachmentgenie.com

@attachmentgenie attachmentgenie force-pushed the nomad_sd branch 4 times, most recently from 4cc5ac9 to 65a8e67 Compare June 25, 2022 22:01
docs/configuration/configuration.md Show resolved Hide resolved
discovery/nomad/nomad.go Outdated Show resolved Hide resolved
Copy link
Member

@roidelapluie roidelapluie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we pass our HTTP client? Seems like nomad/api supports it.

@attachmentgenie
Copy link
Contributor Author

passed in a httpclient similar to how the consul plugin does it in 3796402

@attachmentgenie attachmentgenie marked this pull request as draft June 28, 2022 07:04
@roidelapluie
Copy link
Member

I guess it checks the "Support all connection parameters"

@attachmentgenie attachmentgenie changed the title DRAFT/WIP feat(nomad): add nomad service discovery feat(nomad): add nomad service discovery Jun 29, 2022
@attachmentgenie attachmentgenie marked this pull request as ready for review June 29, 2022 15:40
@attachmentgenie
Copy link
Contributor Author

@roidelapluie i think i have implemented, tested and documented this now, can you please review again

discovery/nomad/nomad.go Outdated Show resolved Hide resolved
discovery/nomad/nomad.go Outdated Show resolved Hide resolved
discovery/nomad/nomad.go Outdated Show resolved Hide resolved
discovery/nomad/nomad.go Outdated Show resolved Hide resolved
discovery/nomad/nomad.go Outdated Show resolved Hide resolved
discovery/nomad/nomad.go Outdated Show resolved Hide resolved
discovery/nomad/nomad_test.go Outdated Show resolved Hide resolved
discovery/nomad/nomad_test.go Show resolved Hide resolved
docs/configuration/configuration.md Outdated Show resolved Hide resolved
Signed-off-by: Bram Vogelaar <bram@attachmentgenie.com>
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants