Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support instances with hostname #9

Open
slonka opened this issue Sep 19, 2019 · 4 comments
Open

Support instances with hostname #9

slonka opened this issue Sep 19, 2019 · 4 comments

Comments

@slonka
Copy link
Contributor

slonka commented Sep 19, 2019

author: @jakubdyszkiewicz

Envoy throws an error when there are instances with hostaname instead of IP.

An error thrown by Envoy

[2018-11-08 09:29:32.855][23590][warning][config] bazel-out/k8-opt/bin/source/common/config/_virtual_includes/grpc_mux_subscription_lib/common/config/grpc_mux_subscription_impl.h:70] gRPC config for type.googleapis.com/envoy.api.v2.ClusterLoadAssignment rejected: malformed IP address: lrgw1.fivecamel-dev.pl-kra-3.dc4.local. Consider setting resolver_name or setting cluster type to 'STRICT_DNS' or 'LOGICAL_DNS'

AC:

  • Envoy Control & Envoy supports instances with hostnames
@chemicL chemicL closed this as completed Jun 10, 2020
@chemicL
Copy link
Contributor

chemicL commented Jun 10, 2020

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.

@slonka
Copy link
Contributor Author

slonka commented Jun 10, 2020

This is supposed to be support for services registered as domains in Consul (not ips).

@slonka slonka reopened this Jun 10, 2020
@danielkwinsor
Copy link
Contributor

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.

@slonka
Copy link
Contributor Author

slonka commented Nov 25, 2020

@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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants