<p>In kubernetes, I have an application pod (A-pod), then I create a service (A-service) for this pod and expose service's port as 5678.</p>
<p>Now in a cluster, I have 5 namespaces, each namespace will running a service (A-service) and a pod (A-pod), so in  total there are 5 A-services that are running.</p>
<p>My question is, because 5 A-services is using the same port (5678), does it cause conflict? How to access the different services in different namespace with service name?</p>

Joe
<p>Yes, it assigns each different Service name in each namespace. If you have a <code>Service</code> called <code>A-service</code> in a Kubernetes namespace <code>your-ns</code>, the control plane and the DNS Service acting together create a DNS record for <code>A-service.your-ns</code> appropriately. Refer <a href="https://kubernetes.io/docs/concepts/services-networking/service/#dns" rel="nofollow noreferrer">here</a> for more details.</p>
