Quantcast
Channel: How to use a different dns name for OpenShift 3.11 routes than the default wildcard dns name? - Stack Overflow
Viewing all articles
Browse latest Browse all 4

How to use a different dns name for OpenShift 3.11 routes than the default wildcard dns name?

$
0
0

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 https://www.youtube.com/watch?v=Y7syr9d5yrg. All seem to "almost" be usefull for me, but there is always something missing and I'm not able to get this working by myself.

The scenario is as follows. I've got an openshift cluster deployed on an IBM Cloud account. I've registered myinnovx.com. I want to use it with an openshift app. Cluster details:

oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
openshift v3.11.146
kubernetes v1.11.0+d4cacc0

I've got an application deployed with a blue/green strategy. In the following screenshot, you can see the routes I've available.

routes screenshot

mobile-blue: I created this one manually pointing to my custom domain mobileoffice.myinnovx.com

mobile-office: Created with oc expose service mobile-office --name=mobile-blue to use external access.

mobile-green: Openshift automatically generated a route for the green app version. (Source2Image deployment)

mobile-blue: Openshift automatically generated a route for the blue app version. (Source2Image deployment)

I've set up a two CNAME record on my DNS edit page as follows:

enter image description here

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.

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:

enter image description here

This is a current export of my DNS:

$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

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images