Using a custom domain with openshift v3

I am trying to use Openshift Online v3 to host a web application. It works fine with the red domain provided by the hat, but I cannot get the routing to work, to make it work in any other domain. all i get is:

Application not available

The application does not currently service requests at this endpoint. It may not have been started or is still running.

Possible reasons why you see this page:

The host doesn't exist. Make sure the hostname was typed correctly and that a route matching this hostname exists. The host exists, but doesn't have a matching path. Check if the URL path was typed correctly and that the route was created using the desired path. Route and path matches, but all pods are down. Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running. 

Does anyone know how to make your own domain in Openshift v3?

+7
openshift
source share
3 answers

As with the OpenShift Online Developer Preview, the free OpenShift Online start link does not support user domains. Custom domains will only be available if a full paid tier is available. The only option in the time lapse is to use a proxy server in front. One option is to use Cloudflare as this proxy.

+9
source share

Step 1. Create two routes in the openshift v3 console. One provided default openshift (*.openshiftapps.com) and created another route with the host name as your domain name.

Step 2. Go to your domain registrar and add a CNAME record for your domain that points to *.openshiftapps.com domain

Wait for the CNAME addition to take effect and access your domain name from the browser, it should now load the page correctly.

+11
source share

Take a look at these docs .

 $ oc create route edge --service=frontend \ --cert=${MASTER_CONFIG_DIR}/ca.crt \ --key=${MASTER_CONFIG_DIR}/ca.key \ --ca-cert=${MASTER_CONFIG_DIR}/ca.crt \ --hostname=www.example.com 
+1
source share

All Articles