This chapter doesn't have strict requirements when it comes to the lab environment, so any OpenShift installation and development environment is supported—Minishift, oc cluster up, or a standard production-ready deployment based on Ansible. It is up to you which flavor to use. However, this chapter will focus on the oc cluster up method. The following Vagrantfile can be used to deploy our virtual lab:
Vagrant.configure(2) do |config|
config.vm.define "openshift" do |conf|
conf.vm.box = "centos/7"
conf.vm.network "private_network", ip: "172.24.0.11"
conf.vm.hostname = 'openshift.example.com'
conf.vm.network "forwarded_port", guest: 80, host: 980
conf.vm.network "forwarded_port", guest: 443, host: 9443
conf.vm.network "forwarded_port", guest...