<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>

Matias Salimbene
<p>I think you almost got it, Matias.</p>

<p>The FQDN - <code>mobile-office-mobile-office.mycluster-342148-26562a7d6831df3dfa02975385757d2d-0001.us-south.containers.appdomain.cloud</code> - resolves for me to an IP that is part of SOFTLAYER-RIPE-4-30-31 and is accessible from the Internet. So, it should be possible to configure what you want.</p>

<p>That snapshot in your question of the DNS records isn't displaying the entries in full but what might be missing is a dot <code>.</code> at the end of both the "Host/Service" and "Value/Target". Something like this:</p>

<pre><code>mobileoffice.myinnovx.com. CNAME 900 (15min)  mobile-office-mobile-office.mycluster-342148-26562a7d6831df3dfa02975385757d2d-0001.us-south.containers.appdomain.cloud. 
</code></pre>
