Router, etc. (OpenShift Origin)

References

  • Instalación y Configuración de Openshift en Ubuntu 16.04

http://enmilocalfunciona.io/instalacion-y-configuracion-openshift-ubuntu-16-04/

Router installation

Login and install router:

./oc login -u system:admin
./oadm policy add-scc-to-user hostnetwork -z router
./oadm router router --replicas=1 --service-account=router

Check status:

oc status
In project default on server https://10.0.2.15:8443
svc/docker-registry - 172.30.155.30:5000
  dc/docker-registry deploys docker.io/openshift/origin-docker-registry:v1.5.0
    deployment #1 deployed 9 days ago - 1 pod
svc/kubernetes - 172.30.0.1 ports 443, 53->8053, 53->8053
svc/router - 172.30.182.199 ports 80, 443, 1936
  dc/router deploys docker.io/openshift/origin-haproxy-router:v1.5.0
    deployment #1 deployed 4 minutes ago - 1 pod

Now it is possible to create a route from the 'Overview' tab of the OpenShift console and access it from outside

http://deployment-example-prova.router.default.svc.cluster.local:8080/

On VirtualBox, port forwarding is set from 127.0.0.27 8080 to the VM router IP [<blank>:80]