首页 文章

Kubernetes:将多个服务映射到1个外部 endpoints

提问于
浏览
4

我有一个Kubernetes集群正在运行,并且有多个服务面向几个Pod . 当我将每个服务公开为LoadBalancer时,它会为公共消费创建一个唯一的 endpoints . 有没有办法将其配置为公开1个公共 endpoints ,然后让Filter在请求路径上将流量重定向到正确的Pod基础? e,g外部 endpoints :www.common-domain / v1 / api /

服务1:/帐户Pods 1:帐户相关的pods

服务2:/ customer Pods 2:客户相关的pods

服务3:/ profile Pods 3:profile-related-pods

然后请求“www.common-domain / v1 / api / account”,它应该调用帐户相关的pods .

谢谢

1 回答

相关问题