<p>I have 2 namespaces and 1 pod, 1 service running in each.</p>

<p>Example</p>

<pre><code>Namespace 1: default
Pod: pod1
Service: pod1service

Namespace 2: test
Pod: pod1
Service: pod1service
</code></pre>

<p>I can actually make HTTP request from namespace2 pod to namespace1 pod.</p>

<pre><code>curl -H "Content-Type: application/json" -X GET http://pod1service.default.svc.cluster.local/some/api
</code></pre>

<p>How do i disable communication between 2 differet namespaces?</p>

<p>You need to configure <a href="https://kubernetes.io/docs/concepts/services-networking/networkpolicies/" rel="nofollow noreferrer">network policies</a>. For that to work you also need to use a <a href="https://kubernetes.io/docs/concepts/cluster-administration/addons/" rel="nofollow noreferrer">network addon</a> that supports policies.</p>
