title: Kubernetes best practice to access an Internal DB Service from other pods
body: <p>I have a Postgresql Service DB deployed on my cluster.
  And I also have a pod, based on python that queries this DB every period of time with a random query.</p>
  <p>Right now, I just hardcode the internal IP of the Postgresql Service within that Pod in my Python script that is auto-generated by the K8.</p>
  <p>So currently, I have only one such pod (as I described below) but I plan to have pods with different actions, and I also have a Django that depends on this Postgresql DB.</p>
  <p>What is the best practice to access this DB from different K8 Objects? I don't find it cleanest solution at all.
  Thanks</p>