title: To convert eureka microservice to docker-kubernetes
body: <p>I am converting eureka-microservice to docker-kubernetes.  </p>
  
  <p>When I create a <code>pod</code>, its getting configuration file on gitlab throught configserver x.x.x.x port 8888 . Got following error : </p>
  
  <blockquote>
    <p>Could not locate PropertySource: I/O error on GET request for "<a href="https://x.x.x.x:8888/docker/docker" rel="nofollow noreferrer">https://x.x.x.x:8888/docker/docker</a>": No route to host (Host unreachable); nested exception is java.net.NoRouteToHostException: No route to host (Host unreachable)</p>
  </blockquote>
  
  <p><code>x.x.x.x</code> is an ip address of a configuration server</p>
  
  <p>I have imported Certificate of <code>https://x.x.x.x:8888</code> to the image. And created <code>service.yml</code> file.</p>
  
  <p>I have created <code>env</code> for the docker and created <code>bootstrap</code> file as well.</p>
  
  <p>Follow this : <a href="https://groups.google.com/forum/#!topic/kubernetes-dev/TD4v5710jkQ" rel="nofollow noreferrer">https://groups.google.com/forum/#!topic/kubernetes-dev/TD4v5710jkQ</a></p>
  
  <p>I have created <code>endpoint</code> for redirect to configserver.</p>
  
  <pre><code>apiVersion: v1
  kind: Endpoints
  metadata:
    name: configserver_name
    namespace: default
  subsets:
  - addresses:
    - ip: x.x.x.x
    ports:
    - port: 8888
  </code></pre>