<p>I need a way to directly talk to a pod from another pod within the same namespace. When a pod is starting the IP details will be sent to the second pod. So as long as it doesn't change without the pod being recreated I'm good. So my question would be, will the Pod's IP change without pod being recreated.</p>
<p>PS: I'm trying to avoid Statefulsets for now.</p>

Arun Lal
<p>Less chances there without <strong>re-create</strong>, However few chances when <strong>IP</strong> gets changed which you can not control.</p>
<ul>
<li>Node failed or Rescheduling</li>
<li>Network changes</li>
</ul>
<p>The best option is to use the <strong>statefulset</strong> but you mentioned you not inclined toward it.</p>
<p>If you just using POD without any controller like Deployment you can use the <strong>Hostname &amp; Subdomain</strong> in the spec section.</p>
<pre><code>spec:
  hostname: pod-data
  subdomain: data-subdomain
</code></pre>
<p>Which you can resolve in another POD, however, if you use it in <strong>Deployment</strong> it will work but it's better to use <strong>service</strong>. As the <strong>hostname</strong> will be the same across all <strong>replicas</strong> of deployment.</p>
<p>i am not able to understand actually the requirement to use <strong>POD IP</strong>, you can keep <strong>single</strong> replicas of POD handled by <strong>deployment</strong> backed by <strong>service</strong>.</p>
