openshiftredhatopenshift-originxip.io

What should I use if xip.io is not an option in local install of Openshift?


The Openshift 'all-in-one' Vagrant box uses xip.io. The security team at my company has relayed to us that using 'xip.io' for a wildcard DNS could cause some security concerns. So given that 'xip.io' is not an option, how can I get this set up?


Solution

  • We ran into a similar issue at my company. The best answer, which is a bit dire, is that you'll need to set up your own custom DNS. Sorry to say because it is a bit annoying to do but not all that bad. Use this link, it should give you some guidance.

    Basically, you'll need to /etc/dnsmasq.conf file to look like:

    # Reverse DNS record for master
    host-record=master.example.com,192.168.1.100
    # Wildcard DNS for OpenShift Applications - Points to Router
    address=/apps.example.com/192.168.1.100
    

    The article goes into great detail. I'm not sure how network savvy you are, but if you're not, then I'd suggest roping in one of your ops guys to assist with this. Without a relatively good understanding of networking, setting this up would be quite difficult.