open shift.png

The Minishift is an tool which provides an easy way to run OpenShift locally on developer’s machine. Minishift uses an hypervisor to start a virtual machine where the whole OpenShift environment is set up. Thus you can start, stop and delete the whole environment in seconds.

For the easy resolution of Minishift addresses there is used DNS ( times before) which translate the DNS query to address mentioned befor the suffix.

host has address

If you create an OpenShift route in Minishift it uses the for translation.

oc get routes

gets the output similar to this












This causes a trouble if you run the Minishift when you are not online. There is a chance to start your local DNS server and let make the translation on your machine. I was trying the but probably as I’m not a good Linux administrator it does not succeed.

Then I found about existence dnsmasq service which works for me. On my Fedora 26

# install the service
dnf install dnsmasq

# -- Adding configuration for the translation to the end of the config file
vim /etc/dnsmasq.conf
# Reverse DNS record for master,
# Wildcard DNS for OpenShift Applications - Points to Router

# Start the service
systemctl start dnsmasq

From now the dnsmasq should be returning the DNS requests on to which is the address where Minishift was started on (see the oc get routes commands, output in the table above)

More to investigate

  • If network is first up and then put down the DNS resolution inside of the Minishift seems retries to connect to outside network and it takes time until dnsmasq is used. An one request could take 10 seconds.

  • Usage of --public-hostname and --routing-suffix could help in configuration but somehow does not work for me.

comments powered by Disqus