title: OpenShift - how can pods resolve each other names
body: <p>I m trying to have cloudera manager and cloudera agents on openshift, in order to run the installation I need to get all the pods communicating with each other. </p>
  
  <p>Manually, I modified the /etc/hosts on the manager and add all the agents and on the agents I added the manager and all the other agents. </p>
  
  <p>Now I wanted to automate this, let suppose I add a new agent, I want it to resolve the manager and the host (I can get a part of it done, by passing the manager name as an env variable and with a shell script add it to the /etc/hosts, not the ideal way but still solution). But the second part would be more difficult, to get the manager to resolve every new agent, and also to resolve every other agent on the same service. </p>
  
  <p>I was wondering if there is a way so every pod on the cluster can resolve the others names ? </p>
  
  <p>I have to services cloudera-manager with one pod, and an other service cloudera-agent with -let's say- 3 agents. </p>
  
  <p>do you have any idea ? </p>
  
  <p>thank you. </p>