envoyproxy/envoy

Question: Route dynamically by source ip

Open

#23,974 创建于 2022年11月14日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)C++ (5,373 fork)batch import
area/routerhelp wantedquestion

仓库指标

Star
 (27,997 star)
PR 合并指标
 (平均合并 8天) (30 天内合并 378 个 PR)

描述

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)

贡献者指南