<p>We are trying to inter communicate with multiple services without exposing them to the public.</p>
<p>I have a service like this:-</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: &quot;v1&quot;
kind: &quot;Service&quot;
metadata:
  name: &quot;config&quot;
  namespace: &quot;noicenamespace&quot;
  labels:
    app: &quot;config&quot;
spec:
  ports:
  - protocol: &quot;TCP&quot;
    port: 8888
    targetPort: 8888
  selector:
    app: &quot;config&quot;
  type: &quot;LoadBalancer&quot;
  loadBalancerIP: &quot;&quot;

</code></pre>
<p>Due to type LoadBalancer, the service is accesible on public network. But we only want this service to be visible to our internal services in our cluster.</p>
<p>So if I comment out the loadBalancerIP and set type as ClusterIP, My other pods can't access the service.
I tried specifying the service name like this:-</p>
<pre><code>http://config.noicenamespace.svc.cluster.local:8888
</code></pre>
<p>But I get timeout. We have created cluster from scratch on Google Kubernetes Engine</p>

LightSith
<p>I guess you missed the port number here <code>8888</code></p>
<p>so it should be called like this</p>
<p><code>http://config.noicenamespace.svc.cluster.local:8888 </code></p>
<p>Debugging step:</p>
<ol>
<li>Go one of the pod's exec mode.</li>
<li><code>wget -qO- http://config.noicenamespace.svc.cluster.local:8888</code> or curl
check if you get any respsonse or not and then exit of pods exec mode.</li>
<li>Check endpoints using <code>kubectl get ep</code> and check the ip address of the endpoint and try to curl that IP:PORT number
if you get IP from ep then it means the pod'S are attached to service and everything is correct</li>
<li>Check if the network policy are in place or not.</li>
</ol>
