<p>I am trying to render flower, which lies in a kubernetes pod, in my other web-interface pod. Is there anyway how I can adress the service from outside the cluster, since the rendering happens in my computer and not on the pod.</p>
<p>I tried NodePort but it's not working. I used something like this but it cannot reach the server. I am quite new to kubernetes and would appreciate any help.</p>
<p>'''http://celery-flowe-service:5555'''</p>

Codein
<p>You can connect to the service from a different pod in same cluster using a service DNS in kuberentes. Kubernetes internally create a DNS for every service you create.</p>
<p>The internal DNS inside cluster will be</p>
<pre><code>&lt;service-name&gt;.&lt;namespace-name&gt;.svc.cluster.local
</code></pre>
<p>Example, if your service name is test-service and is deployed in namespace default, then</p>
<pre><code>test-service.default.svc.cluster.local
</code></pre>
<p>Using the above DNS, you can access the service running to the connect POD from within the cluster.</p>
<p>If you want to connect to it from outside cluster, you can create a External Load Balancer. Use service as <code>Load Balancer</code> and using this, you can access from outside cluster.</p>
<p>If you go with more advanced kuberentes deployment, you can use Ingress/Traefik Controllers to expose your services in Kubernetes.</p>
