I'm trying to see if it's possible to include envoy in each Docker container and also have the various containers in an Envoy mesh using service discovery. The service discovery mechanism relies only on hostnames which seem to preclude the envoy per docker instance setup. Is there a way to support this use case at the moment?
--
You received this message because you are subscribed to the Google Groups "Envoy Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users+unsubscribe@googlegroups.com.
To post to this group, send email to envoy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/380205ba-c8c0-4f9a-a84d-ae21716bf7ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I’m trying to use the Sevice Discovery Service type. Our in-house registry is exposing the API as needed by Envoy. Here’s the’s the configuration that I have:
Host A (192.168.8.210)
|
+--> Docker Container (-p 8080:8080 -p 9211:9211)
|
+--> Envoy on port 9211, 9001 + Service 1 on port 8080
Host B (192.168.8.211)
|
+--> Docker Container (-p 8080:8080 -p 9211:9211)
|
+--> Envoy on 9211, 9001 + Service 2 on port 8080
Host C
|
+--> SDS (port 1111)
SDS returns the following:
curl http://c:1111/v1/registration/service1
{"ip_address": "192.168.8.210", "port": 8080}
curl http://c:1111/v1/registration/service2
{"ip_address": "192.168.8.211", "port": 8080}
Note: I’ve tried having the SDS return 9211 instead of 8080, but Envoy complains about the upstream services being unhealthy.
Service 1 is dependent on Service 2. Service 1 is attempting to reach Service 2 via the local envoy on port 9001 with the Host header set.
Thanks again.