<p>I have a set of pods in a deployment, and I'd like to have a pod in the same namespace be able to connect to one of the <em>specific</em> pods in the deployment. For instance, I'd like the ability to connect directly to an exposed port on pod <code>my-pod-55785865c5-cjxfs</code>. Is this possible?</p>

chris.mclennon
<p>You can create the service and use it as the method to create connection. Kubernetes services : <a href="https://kubernetes.io/docs/concepts/services-networking/service/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/</a></p>

<p>Pod to Pod communication: <code>pod-ip.namespace.pod</code> </p>

<p>Service to service communication : <code>service-name.my-namespace.svc.cluster.local</code></p>

<p>However you can also use pod IP clusterIP to make connections but with a pod restart the IP changes.</p>
