Open slonka opened 5 years ago
This works as designed. We have a separate configuration for domains and it's undesired to have a cluster with both IPs and domain as the endpoints.
This is supposed to be support for services registered as domains in Consul (not ips).
I have had success when using domain names in the following way: Use STRICT_DNS when the IP from DNS won't change. Use LOGICAL_DNS when the IP might change, as in the cloud.
@danielkwinsor we know that we can use STRICT_DNS and LOGICAL_DNS but AFAIK there is no way to mix both EDS and DNS clusters under the same name. If you need to configure a STRICT_DNS cluster use domain
field in metadata https://envoy-control.readthedocs.io/en/latest/features/permissions/ . You can see how it's translated into a cluster here: https://github.com/allegro/envoy-control/blob/e73204a649db0acd474c1fcc7d3b9e3c13f825f3/envoy-control-core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/resource/clusters/EnvoyClustersFactory.kt#L188
author: @jakubdyszkiewicz
Envoy throws an error when there are instances with hostaname instead of IP.
An error thrown by Envoy
AC: