<p>I was wondering how pods are accessed when no service is defined for that specific pod. If it's through the environment variables, how does the cluster retrieve these?</p>

<p>Also, when services are defined, where on the master node is it stored? </p>

<p>Kind regards, 
Charles</p>

Charles Van Damme
<ul>
<li><p>If you define a service for your app , you can access it outside the cluster using that service</p></li>
<li><p>Services are of several types , including nodePort , where you can access that port on any cluster node and you will have access to the service regardless of the actual location of the pod</p></li>
<li><p>you can access the endpoints or actual pod ports inside the cluster as well , but not outside</p></li>
<li><p>all of the above uses the kubernetes service discovery </p></li>
<li>There are two type of service dicovery though</li>
<li>Internal Service discovery</li>
<li>External Service Discovery.</li>
</ul>

<p><a href="https://i.stack.imgur.com/hrovm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hrovm.png" alt="enter image description here"></a></p>
