<p>I'm not able to get a custom domain record working with an openshift cluster. I've read tons of articles, StackOverflow posts, and this youtube video <a href="https://www.youtube.com/watch?v=Y7syr9d5yrg" rel="nofollow noreferrer">https://www.youtube.com/watch?v=Y7syr9d5yrg</a>. All seem to &quot;almost&quot; be usefull for me, but there is always something missing and I'm not able to get this working by myself.</p>
<p>The scenario is as follows. I've got an openshift cluster deployed on an IBM Cloud account. I've registered <strong>myinnovx.com</strong>. I want to use it with an openshift app. Cluster details:</p>
<pre><code>oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
openshift v3.11.146
kubernetes v1.11.0+d4cacc0
</code></pre>
<p>I've got an application deployed with a blue/green strategy. In the following screenshot, you can see the routes I've available.</p>
<p><a href="https://i.stack.imgur.com/TcZRZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TcZRZ.png" alt="routes screenshot" /></a></p>
<blockquote>
<p>mobile-blue: I created this one manually pointing to my custom domain <strong>mobileoffice.myinnovx.com</strong></p>
<p>mobile-office: Created with <code>oc expose service mobile-office --name=mobile-blue</code> to use external access.</p>
<p>mobile-green: Openshift automatically generated a route for the green app version. (Source2Image deployment)</p>
<p>mobile-blue: Openshift automatically generated a route for the blue app version. (Source2Image deployment)</p>
</blockquote>
<p>I've set up a two CNAME record on my DNS edit page as follows:</p>
<p><a href="https://i.stack.imgur.com/JTzXV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JTzXV.png" alt="enter image description here" /></a></p>
<p>In several blogs/articles, I've found that I'm supposed to point my wildcard record to the router route canonical name. But I don't have any route canonical name in my cluster. I don't even have an Ingress route configured.</p>
<p>I'm at a loss here as to what I'm missing. Any help is greatly appreciated.
This is the response I get testing my DNS:</p>
<p><a href="https://i.stack.imgur.com/DpezY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DpezY.png" alt="enter image description here" /></a></p>
<p>This is a current export of my DNS:</p>
<pre><code>$ORIGIN myinnovx.com.
$TTL 86400
@ IN SOA ns1.softlayer.com. msalimbe.ar.ibm.com. (
                       2019102317        ; Serial
                       7200              ; Refresh
                       600               ; Retry
                       1728000           ; Expire
                       3600)             ; Minimum

@                      86400    IN NS    ns1.softlayer.com.
@                      86400    IN NS    ns2.softlayer.com.


*.myinnovx.com         900      IN CNAME .mycluster-342148-26562a7d6831df3dfa02975385757d2d-0001.us-south.containers.appdomain.cloud.
mobileoffice           900      IN CNAME mobile-office-mobile-office.mycluster-342148-26562a7d6831df3dfa02975385757d2d-0001.us-south.containers.appdomain.cloud
mobile-test.myinnovx.com 900      IN A     169.63.244.76
</code></pre>

<p>Also, please note the instructions for custom DNS setup for a route on OpenShift v4 are a bit different and are not correctly displayed in the web console:</p>
<p><a href="https://i.stack.imgur.com/SYNjN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SYNjN.png" alt="enter image description here" /></a></p>
<p><code>apps.&lt;clustername&gt;.&lt;clusterid&gt;.&lt;shard&gt;.openshiftapps.com</code> will not  resolve to anything. <code>*.apps.&lt;clustername&gt;.&lt;clusterid&gt;.&lt;shard&gt;.openshiftapps.com</code> is the wildcard entry, so you need something prepending that.</p>
<p>To align with the way it was on v3 we usually chose the arbitrary string <code>elb</code>, e.g. - <code>elb.apps.&lt;clustername&gt;.&lt;clusterid&gt;.&lt;shard&gt;.openshiftapps.com.</code>  That will hit the routers.</p>
<p>Here is the related BZ - <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1925132" rel="nofollow noreferrer">https://bugzilla.redhat.com/show_bug.cgi?id=1925132</a></p>
