envoyproxy/envoy

Question: Route dynamically by source ip

Open

#23,974 opened on 2022年11月14日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)C++ (5,373 forks)batch import
area/routerhelp wantedquestion

Repository metrics

Stars
 (27,997 stars)
PR merge metrics
 (平均マージ 8d) (30d で 378 merged PRs)

説明

Hi, I have a use case where I'm trying to figure out if Envoy can help. I have multiple UDP services in my k8s cluster and I want to have an envoy proxy that will route incoming traffic depending on the source IP. I will also be dealing with a ton of IP addresses that will increase/decrease dynamically inside the exact_match_map property.

I've read that Envoy support a new API known as xDS to configure envoy dynamically. What I'm trying to figure is:

  1. Setting exact_match_map dynamically is the way to go? can Envoy deal with a large number of values (millions of them even) in exact_match_map that gets added over time?
  2. when defining clusters for my UDP services - do I have to set their actual ip addresses? or can I only reference their domain name to let Envoy resolve them when doing the routing? (EDIT: read now about STRICT_DNS type of service discovery in envoy, so I guess that's the way to go for my 2nd concern)

コントリビューターガイド