title: How do pods communicates with the other pod in a cluster created using Kubernetes
body: <p>I have created 1 master node and 1 worker node with 2 pods using kops in aws.
  In one pod i have my oracle database running and in other pod i have deployed my java web application. Now to run the java web application needs to talk to the database pod for 
   To communicate between 2 pods in a cluster, i have configured the pod's IP address in my java application. I am able to access the application using the cloud providers public URL, everything is good in the dev environment. But in case of production environment, i cannot keep configuring the database Pod's IP address in my java application Pod. </p>
  
  <p>How do people solve this issue ? Do you guys use Pod's Ip address to communicate with other pod's in kubernetes ? or is there any other way for communication between pods ?</p>
  
  <p>Here is how my Pods look like in the cloud</p>
  
  <pre><code>   NAME                           READY     STATUS    RESTARTS   AGE       IP            NODE
  csapp-8cd5d44556-7725f         1/1       Running   2          1d        100.96.1.54   ip-172-56-35-213.us-west-2.compute.internal
  csdb-739d459467-92cmh          1/1       Running   0          1h        100.96.1.57   ip-172-27-86-213.us-west-2.compute.internal
  </code></pre>
  
  <p>Any help or directions on this issue would be helpful.</p>