# Service with number of pod

**URL:** <https://discuss.kubernetes.io/t/service-with-number-of-pod/9241>\
**Category:** General Discussions\
**Created:** [January 8, 2020, 10:05am UTC](https://discuss.kubernetes.io/t/service-with-number-of-pod/9241 "2020-01-08T10:05:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lelunicu](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/lelunicu/32/3086_2.png) [@lelunicu](https://discuss.kubernetes.io/u/lelunicu)\
**Post date:** [January 8, 2020, 10:05am UTC](https://discuss.kubernetes.io/t/service-with-number-of-pod/9241/1 "2020-01-08T10:05:59Z")

</div>

hi,  
i like to understand.

When a service is created to connect to pod,then this service is create on master server or in the worker where the pod run?

i see that metadata label is used to connect service with pod.right?  
if we like to connect a service with a pod then we use the same label name in service and in pod.

### Cluster information:

Kubernetes version:  
Cloud being used: (put bare-metal if not on a public cloud)  
Installation method:  
Host OS:  
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.
