<p>I have a single node K8s cluster subdivided into several namespaces, and each namespace has a number of PODs. How do PODs from one namespace talk to another POD in a different namespace? I know I can have a ClusterIP service and expose a deployment to it, so other PODs from the same cluster can access the POD application via this service. Can a POD from different namespace use the same ClusterIP service to access the POD application? Another question is, is it possible that PODs from different namespace share the same subnet?</p>

Vinit Shandilya
<p>It is possible for Pods from one namespace to communicate with pods from another namespace.</p>
<p>Let's say we have namespace <code>a</code> with service <code>hello-a</code> with something exposed on port <code>8080</code> and another namespace <code>b</code> with service <code>hello-b</code> with something exposed on port <code>9090</code></p>
<p>From namespace <code>b</code> you can access service <code>hello-b</code> using port <code>9090</code> in namespace <code>b</code> as <code>hello-b.b.svc.cluster.local:9090</code> in general <code>&lt;service_name&gt;.&lt;namespace&gt;.svc.cluster.local</code></p>
<p>And is similar for namespace <code>b</code> too. <code>hello-a.a.svc.cluster.local:8080</code></p>
