Skip to content

Consul Node.Name might be a DNS name #2208

@ggnaegi

Description

@ggnaegi

Expected Behavior / New Feature

The consul service discovery provider should check if the node.Name could be a DNS/Host Name, otherwise return the service url.

Actual Behavior / Motivation for New Feature

The consul service provider doesn't check if the node.Name is a host name. Depending on service discovery configuration, the node.Name might not be a host name.

https://developer.hashicorp.com/consul/docs/agent

Node name: This is a unique name for the agent. By default, this is the hostname of the machine, but you may customize it using the -node flag.

Steps to Reproduce the Problem

  1. Change the agent name, use something that is not related to the hostname.
  2. Try to use the Consul Service Discovery

related to: #2203, #954

Metadata

Metadata

Assignees

Labels

ConsulService discovery by ConsulService DiscoveryOcelot feature: Service DiscoverybugIdentified as a potential bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions