envoyproxy / gateway

Manages Envoy Proxy as a Standalone or Kubernetes-based Application Gateway
https://gateway.envoyproxy.io
Apache License 2.0
1.64k stars 357 forks source link

Config Consul with DNS for Service Discovery #2235

Open quyenhoang96 opened 1 year ago

quyenhoang96 commented 1 year ago

HAproxy can resolve DNS by a consul to get the address of the service.

And the same, how to I can config to use consul to resolve DNS ?

arkodg commented 1 year ago

@quyenhoang96 can you elaborate on this use case ? do you want to route to a backend represented as a FQDN ?

quyenhoang96 commented 1 year ago

@quyenhoang96 can you elaborate on this use case ? do you want to route to a backend represented as a FQDN ?

Hi @arkodg . For now, I have a HAProxy. When the client calls API, it calls HAProxy. Then HAProxy calls Consul to resolve DNS to retrieve the IP of the Backend Service; then it uses IP that to forward traffic upstream. For now, I want to migrate HAProxy to Envoy proxy by the Envoy gateway. The first step is to send traffic to envoy-proxy, then envoy-proxy call to Consul to resolve DNS to get the IP of the Backend Service.

zirain commented 1 year ago

@quyenhoang96 is this what you're talking?

quyenhoang96 commented 1 year ago

Hi @zirain. That's right

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days.