This is a Vagrant based project that demonstrates an advanced Openshift Origin 3.10 installation process using an Ansible playbook.
Jun 29, 2019 Then you have to add it locally from your vagrant file. To add it locally to vagrant file use the following command. Vagrant box add foo-box /path/to/vagrant-box.box vagrant init foo-box vagrant up This will create the vagrantfile and you can configure the vagrant file. Nov 17, 2016 Note: the steps below are outlined as if the sample Vagrant file included in this post is used in its entirety — meaning all file paths and constants referenced in that file will also be.
Notice
This repository has been forked from openshift/openshift-ansible-contrib.If you want to install OpenShift Container Platform (with a valid RedHat subscription) please use the original repository.
Prerequisites
System Requirements
- CPU with at least 4-cores (or virtual cores)
- Minimal 12GB Memory (Each VM uses 2GB memory)
Each VM requires at least 2GB memory.
Reducing the memory settings will result in installation fail (the ansible installer fails for random reasons).Nevertheless, it is possible and recommended to increase the memory settings to 4GB when there is sufficient memory installed.
Reducing the memory settings will result in installation fail (the ansible installer fails for random reasons).Nevertheless, it is possible and recommended to increase the memory settings to 4GB when there is sufficient memory installed.
Software Requirements
- Vagrant
- VirtualBox or Libvirt (--provider=libvirt)
Vagrant Plugins
- landrush
- vagrant-hostmanager
- vagrant-sshfs
- vagrant-reload (optional)
There is a shell script available to install all vagrant plugins:
Additional Information
The project uses the CentOS base box as underlying operating system. You can change the vagrant box by changing 'box_name' variable in Vagrantfile.Be aware that OpenShift only works properly with RHEL, CentOS or Fedora based distributions.
Windows Vagrant Box
Installation
Vagrant Box Directory
Four ansible playbooks will start on admin1 after it has booted.The first playbook bootstraps the prerequisites for OpenShift.After that the OpenShift installer - consisting of two playbooks - are run according to the Origin documentation.Finally a post-installation playbook is run which grants the 'cluster-admin' role to the admin user.
The install comprises one master and two nodes. The NFS share gets created on admin1.
Technology Preview: CRI-O
To enable the cri-o container runtime which is currently in technology preview use:
Vagrant Box Add Version
Login to your cluster
Login to the web console on https://master1.example.com:8443 with user 'admin' and password 'admin123'.
Troubleshooting
The landrush plugin creates a small DNS server to that the guest VMs can resolve each others hostnames and also the host can resolve the guest VMs hostnames.The landrush DNS server is listens on 127.0.0.1 on port 10053. It uses a dnsmasq process to redirect dns traffic to landrush. If this isn't working verify that:
gives
and that /etc/resolv.conf has an entry# Added by landrush, a vagrant pluginnameserver 127.0.0.1