Closed yoav-sentinel closed 2 hours ago
Issue was that the dns_cache_config
name was different in the cluster vs the filter:
dns_cache_config:
name: dynamic_dns_cache
vs
dns_cache_config:
name: dynamic_forward_proxy_cache_config
Title: Dynamic forward proxy host not found
Description: My use case is to use an external processor to decide the actual request routing (and set a
target
header for example), and then use the dynamic forward proxy to forward the request withhost_rewrite_header
(instead of using defined cluster per upstream due to huge amount of upstreams).I've simplified envoy configuration and removed the external processor, to just validate the dynamic forward proxy works:
Though the request:
curl -v -k http://localhost:10000
Returns 503 due to:
[2024-11-18 09:43:56.029][28][debug][upstream] [source/extensions/clusters/dynamic_forward_proxy/cluster.cc:406] host www.google.com:80 not found
Any idea what is wrong with my configuration / request?
When I'm defining a
google_service
cluster to www.google.com endpoint on port 80 it works correctly.