<p>I have a basic understanding that pods need to be exposed as service. Now I would like to know that
the frontend Pod(like web pods) must be exposed as Load Balancer service and backend pods (like app or DB pods) must be exposed as ClientIP. And there is no configuration from within the application(Java/Python). My question may be silly but I would like to understand.
In a Two-tier or three tier architecture we will be configuring in the application side. Likewise I am trying to understand the concept here. Thanks in advance!</p>

Dilly B
<p>To establish the communication between component (frontend, backend and database) I think you need  to make :</p>
<ul>
<li>A deployment for each component</li>
<li>Service type clusterIp to establish communication between backend and database.</li>
<li>Service type clusterIP to establish communication between backend and frontend.</li>
<li>To make your application accessible from the outside you can use service type nodePort or load balancer .</li>
</ul>
<p>To resume:</p>
<ul>
<li>Service type clusterIP for inter communication inside cluster.</li>
<li>Node port to make your service accessible at node level.
I hope that make this part clear for you .</li>
</ul>
