<p>We are using the Python Docker SDK to create ephemeral containers in Kubernetes. My question is if these new containers will also share the same networking as the other containers in the pod? In other words, can this newly created ephemeral container access the original container that created it using localhost?</p>

<blockquote>
<p>My question is if these new containers will also share the same networking as the other containers in the pod?</p>
</blockquote>
<p>Yes. Although the specific nature of the ephemeral <a href="https://kubernetes.io/docs/concepts/workloads/pods/ephemeral-containers/" rel="nofollow noreferrer">container networking is not documented per se</a>. Essentially, an ephemeral container runs in a Pod and it's <a href="https://kubernetes.io/docs/concepts/workloads/pods/#pod-networking" rel="nofollow noreferrer">well described in the docs</a> that the containers in a Pod share the IP address and the networking space.</p>
<p>✌️</p>
