title: Expose service in OpenShift Origin Server - router is not working
body: <p>Our team decided to try using OpenShift Origin server to deploy services.
  We have a separate VM with OpenShift Origin server installed and working fine. I was able to deploy our local docker images and those services are running fine as well - Pods are up and running, get their own IP and I can reach services endpoints from VM.</p>
  
  <p>The issue is I can't get it working, so the services are exposed outside the machine. I read about the routers, which suppose to be the right way of exposing services, but it just won't work, now some details.</p>
  
  <p>Lets say my VM is 10.48.1.1. The Pod with docker container with one of my services is running on IP 172.30.67.15:</p>
  
  <pre><code>~$ oc get svc
  NAME                CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE
  my-svc              172.30.67.15     &lt;none&gt;        8182/TCP   4h
  </code></pre>
  
  <p>The service is simple Spring Boot app with REST endpoint exposed at port 8182.
  Whe I call it from VM hosting it, it works just fine:</p>
  
  <pre><code>$ curl -H "Content-Type: application/json" http://172.30.67.15:8182/home
  {"valid":true}
  </code></pre>
  
  <p>Now I wanted to expose it outside, so I created a router:
  oc adm router my-svc --ports='8182'</p>
  
  <p>I followed the steps from <a href="https://docs.openshift.com/enterprise/3.2/dev_guide/routes.html" rel="nofollow noreferrer">OpenShift dev doc</a> both from CLI and Console UI. The router gets created fine, but then when I want to check its status, I get this:</p>
  
  <pre><code>$ oc status
  In project sample on server https://10.48.3.161:8443
  ...
  Errors:
    * route/my-svc is routing traffic to svc/my-svc, but either the administrator has not installed a router or the router is not selecting this route.
  </code></pre>
  
  <p>I couldn't find anything about this error that could help me solve the issue - does anyone had similar issue? Is there any other (better/proper?) way of exposing service endpoint? I am new to OpenShift so any suggestions would be appirciated.</p>