# Kong routing requests across two namespaces

**URL:** <https://discuss.konghq.com/t/kong-routing-requests-across-two-namespaces/8550>\
**Category:** Questions\
**Tags:** kubernetes\
**Created:** [June 16, 2021, 4:12pm UTC](https://discuss.konghq.com/t/kong-routing-requests-across-two-namespaces/8550 "2021-06-16T16:12:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karol](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/karol/32/2812_2.png) [@Karol](https://discuss.konghq.com/u/Karol)\
**Post date:** [June 16, 2021, 4:12pm UTC](https://discuss.konghq.com/t/kong-routing-requests-across-two-namespaces/8550/1 "2021-06-16T16:12:14Z")

</div>

Hello team, need your advice…

We have deployed an application instance with Kong (using Helm chart) into two different namespaces (dev & test) within AKS.

Problem Description:

When accessing the controller, ingress is routing the traffic to svc:port, however balancing across both namespaces.

Here the log from kong ingress pod -

time=“2021-06-16T13:51:06Z” level=debug msg=“found endpoints: [{10.15.0.33 80}]” component=store service\_name=my-svc service\_namespace=test service\_port=“&ServicePort{Name:,Protocol:TCP,Port:8090,TargetPort:{0 80 },NodePort:0,AppProtocol:nil,}”  
time=“2021-06-16T13:51:06Z” level=debug msg=“fetching endpoints” component=store service\_name=my-svc service\_namespace=dev service\_port=“&ServicePort{Name:,Protocol:TCP,Port:8090,TargetPort:{0 80 },NodePort:0,AppProtocol:nil,}”  
time=“2021-06-16T13:51:06Z” level=debug msg=“found endpoints: [{10.15.0.85 80}]” component=store service\_name=my-svc service\_namespace=dev service\_port=“&ServicePort{Name:,Protocol:TCP,Port:8090,TargetPort:{0 80 },NodePort:0,AppProtocol:nil,}”  
time=“2021-06-16T13:51:09Z” level=debug msg=“fetching endpoints” component=store service\_name=my-svc service\_namespace=dev service\_port=“&ServicePort{Name:,Protocol:TCP,Port:8090,TargetPort:{0 80 },NodePort:0,AppProtocol:nil,}”  
time=“2021-06-16T13:51:09Z” level=debug msg=“found endpoints: [{10.15.0.85 80}]” component=store service\_name=my-svc service\_namespace=dev service\_port=“&ServicePort{Name:,Protocol:TCP,Port:8090,TargetPort:{0 80 },NodePort:0,AppProtocol:nil,}”  
time=“2021-06-16T13:51:09Z” level=debug msg=“fetching endpoints” component=store service\_name=my-svc service\_namespace=cluster-test service\_port=“&ServicePort{Name:,Protocol:TCP,Port:8090,TargetPort:{0 80 },NodePort:0,AppProtocol:nil,}”  
time=“2021-06-16T13:51:09Z” level=debug msg=“found endpoints: [{10.15.0.33 80}]” component=store service\_name=my-svc service\_namespace=test service\_port=“&ServicePort{Name:,Protocol:TCP,Port:8090,TargetPort:{0 80 },NodePort:0,AppProtocol:nil,}”

---

<div class="post-metadata">

**Author:** ![traines](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/traines/32/158_2.png) [@traines](https://discuss.konghq.com/u/traines)\
**Post date:** [June 22, 2021, 8:50pm UTC](https://discuss.konghq.com/t/kong-routing-requests-across-two-namespaces/8550/2 "2021-06-22T20:50:19Z")

</div>

Are you indeed seeing requests hit both instances of the Service, or are you only seeing them both listed in the controller logs?

Seeing both in the logs is normal. The controller’s mechanism for learning about Service topology in the cluster actually fetches _all_ Services and their Endpoints initially, and then only later determines which it will route traffic to based on which Services are referred to by an Ingress. The logs you’re seeing are from the first, un-filtered phase.

We’re working on limiting this to only Services that the controller will eventually need to avoid this confusion and reduce log spam, but it’s normal for now.
