# Can I have single service to call multiple selector pods for each different path?

**URL:** <https://discuss.kubernetes.io/t/can-i-have-single-service-to-call-multiple-selector-pods-for-each-different-path/18066>\
**Category:** General Discussions\
**Created:** [November 12, 2021, 12:59am UTC](https://discuss.kubernetes.io/t/can-i-have-single-service-to-call-multiple-selector-pods-for-each-different-path/18066 "2021-11-12T00:59:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![APPARAO\_ADAPUREDDI](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/apparao_adapureddi/32/6707_2.png) [@APPARAO\_ADAPUREDDI](https://discuss.kubernetes.io/u/APPARAO_ADAPUREDDI)\
**Post date:** [November 12, 2021, 12:59am UTC](https://discuss.kubernetes.io/t/can-i-have-single-service-to-call-multiple-selector-pods-for-each-different-path/18066/1 "2021-11-12T00:59:19Z")

</div>

Requirement:

IngressRoute has multiple paths.  
ex:  
/test1/health  
/test2/health

General process is to have Two services for each path as the Port is same.  
/test1/health–\>\> service1  
/test2/health–\>\> service2

Service1–\>\> Selctor PodS(pod1)  
service2—\>\>Selctor PodS(pod2)

Question :  
Can I have single service to call multiple selector pods for each different path?  
Example:

IngressRoute has multiple paths.  
ex:  
/test1/health  
/test2/health

General process is to have Two services for each path as the Port is same.  
/test1/health–\>\> service1  
/test2/health–\>\> service1

Service1–\>\> Selctor PodS(pod1)  
service1—\>\>Selctor PodS(pod2)

### Cluster information:

Kubernetes version:v1.20.11  
Cloud being used: Azure  
Installation method:  
Host OS: Linux  
CNI and version:  
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.

---

<div class="post-metadata">

**Author:** ![thockin](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/thockin/32/2457_2.png) [@thockin](https://discuss.kubernetes.io/u/thockin)\
**Post date:** [November 12, 2021, 5:25am UTC](https://discuss.kubernetes.io/t/can-i-have-single-service-to-call-multiple-selector-pods-for-each-different-path/18066/2 "2021-11-12T05:25:04Z")

</div>

This is what Ingress is for
