hashicorp / hashicorp/consul

DNS - Connect exposed paths

Open
#16,795 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

#### Feature Description

Some way of accessing the port information for the exposed paths in Consul Connect services. This might require being able to "name" specific exposed paths, or to access the name of the `listener_port` that Nomad uses to configure the port used for the exposed path.

#### Use Case(s)

Discovering an exposed path of a Consul Connect service.

We want to connect to a Consul Connect service with a specific tag, but due to https://github.com/hashicorp/nomad/issues/9914 and https://github.com/hashicorp/consul/issues/11867 this seems impossible. We then attempted to expose the specific path we needed, accepting the loss of not using Consul Connect. But neither Consul DNS nor Consul Template ( https://github.com/hashicorp/consul-template/issues/1730 ) offer any discoverability for this. Since this will be a dynamic port, discovering this port is kinda useful. Having to use the API is cumbersome, and in our use-case (configuring our `haproxy` as a Nomad job) impossible. We also tried creating tag-specific services (e.g. a new service per tag), but due to https://github.com/hashicorp/nomad/issues/9741 we cannot do so dynamically using allocation information, e.g. `${NOMAD_DC}`.

(The only other options we have at the moment, would be to deploy multiple Consul Datacenters, to forego of tags - or to deploy a specific Nomad job per tag, to forego of tagss and service-name string-interpolation.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.