<p>Is there a way to access a pod by its hostname?
I have a pod with hostname: <code>my-pod-1</code> that need to connect to another pod with hostname:
<code>my-pod-2</code>.</p>

<p>What is the best way to achieve this without services?</p>

<p>Through your description, <a href="https://kubernetes.io/docs/concepts/services-networking/service/#headless-services" rel="noreferrer">Headless-Service</a> is you want to find. You can access pod by accessing <code>podName.svc</code> with headless service.</p>

<p>OR access pod by pod ip address.</p>
