Openshift Origin as docker container on Fedora
If you were to follow this article please make sure to have the following prerequisites met before continuing.
Important Note: Though this article has nothing that could adversely impact your platform, please backup any configuration file you plan on changing!
sudo dnf -y install docker docker-client docker-devel python-docker-py python3-docker-py
sudo dnf -y install ansible
sudo dnf -y install bind bind-utils
There are two folders :
Deploy and start Openshift Origin
Change directory to origin and run the following command:
ansible-playbook -K origin.yml
Configure and start named service
Understand what named.conf is and has before proceeding further. You can customize it however you want. The idea here is to resolve
127.0.0.1 as that is where the Openshift Origin's HAProxy router is bound to and will process the necessary forwarding to the right POD.
Pay extra attention to the forwarding DNS ip address in named.conf. Here is where you will place all the regular/usual DNS servers thru who all the other name resolutions would be done outside of Openshift stuff.
Change directory to named and do the following:
- Copy cluster.local as
/var/named/cluster.local. You might need
sudorights for this.
/etc/named.conf.origand copy named.conf file into
- Run the command
sudo systemctl start named. Optionally you can enable service by running
sudo systemctl enable named
- Now ensure that the
/etc/resolv.confhas just one line:
Now all the routes should be resolved and their links are now clickable in Openshift console.