OpenShift integrateÂ aÂ router based on HAproxy to expose your services to the outside world.Â Whenever yourÂ doÂ a :
oc expose servicename
it would expose by default the servicename this URL :
The defaultSubdomain is usuallyÂ a wildcard DNS recordÂ that you have configured in your domain server by your system administrator.Â
Now for your openshiftÂ testing if you don’t want to ask your system administrator to configure a new CNAME going to yourÂ testingÂ environement you can just use the free service xp.io
The XP.IO service is a special DNS service which would take a an IP address and xp.io and report back the IP of this IP address to itself and to all subdomain so that the IP:
will go to 22.214.171.124 same goes for foo.126.96.36.199, bar.188.8.131.52 etc…
You just then need to configure it in OpenShift by editing the value (assuming 184.108.40.206 is your public IP which come back to your router)Â :
routingConfig: subdomain: "220.127.116.11.xip.io"
Or if you use the openshift-ansible scripts to add this your /etc/ansible/hosts
and thenÂ you get all your route exposed properly without bother your always busy system admin.
 Which lately got merged into kubernetesÂ as the “ingress” feature