title: How to create Kubernetes endpoints if it depends on another service endpoint
body: <p>I am creating a pod in kubernetes that has two containers. One container tries to find the endpoint of a running service. If it does not find it, it will exit, causing it to restart, cause the pod #1 container to not configure an endpoint ip.</p>
  
  <p>Pod #2 does the same thing but it is looking for the endpoint for pod #1 that will not configure until pod #1 finds endpoint for pod #2.</p>
  
  <p>How do I get around this, where both endpoints for the pods are created and they connect to each other.</p>