title: How to set a kubernetes pod's hostname to its IP address?
body: <p>So I have a deployment which creates N number of worker pods, and a service which internally balanced traffic to them.  I access the service from a VM.  The VM makes a request, and the pod responds with its hostname so that the VM can make a direct connection to it (this is used for pulling the results back from the pod that actually did the work).</p>
  
  <p>The problem that I'm having is that my pod is returning a hostname of my-pod-5ff75ddd86-2xdjq which the VM cannot resolve.  I'm wondering if it's possible to set the hostname of the pod to its IP, as this would mean I don't have to change any code in my pod, or the tool running in my VM.</p>