<p>I have a use case wherein I have a Rest API running on a POD inside kubernetes cluster, and the helm pre-upgrade hook which runs a k8s Job needs to access Rest API, What is the best way to expose this URL so that helm hook can access it. I do not want to hardcode any Ip.</p>

Jinu Mohan
<p>Posting this as a community wiki, feel free to edit and expand it for better experience.</p>
<p>As David Maze and Lucia pointed out in comments, services are accessible by their IPs and URLs based on service names.</p>
<p>This part is covered and well explained in official kubenetes documentation <a href="https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/" rel="nofollow noreferrer">DNS for services and pods</a></p>
