This document describe the process to install OKD 3.9 (Free OpenShift 3.9) in VirtualBox. Vagrant generate the VMs and resources for us. Ansible will install requistes and OKD 3.9 for us.
OS: Fedora & Ubuntu
VirtualBox 5.2.18
Vagrant version: Installed Version: 2.0.4
Vagrant plugins:
vagrant-hostmanager (1.8.9)
Vagrant box list:
centos/7 (virtualbox, 1809.01)
OS: Fedora & Ubuntu
VirtualBox 6.1 (15 Dec 2019: Last Virtual Box Version is not already ready for Vagrant, 5 min to fixed, follow the steps from this URL: oracle/vagrant-projects#178)
Vagrant version: Installed Version: 2.2.6
Vagrant plugins:
vagrant-hostmanager (1.8.9, global)
Vagrant box list:
centos/7 (virtualbox, 1905.1)
OS: Ubuntu 18.04
Virtaul box Version 6.1.0 r135406 (Qt5.9.5)
Vagrant version: Installed Version: 2.2.7
Vagrant plugins:
vagrant plugin: vagrant-hostmanager (1.8.9, global)
vagrant box: centos/7 (virtualbox, 1809.01)
3 master nodes.
master-one (Bastion node)
master-two
master-three & CNS Node
1 infra node.
infra-one & CNS Node
1 app node.
app-one & CNS Node
1 lb (HA proxy) node
lb-one
CNS (Container Native Storage) as Storage solution.
User Virtual Machine:
user: root
password: vagrant
user: vagrant
password: vagrant
Openshift admin user:
user: admin
password: r3dh4t1!
a) Git.
b) VirtualBox
c) Vagrant
d) Install Vagrant plugin: vagrant plugin install vagrant-hostmanager
git clone https://github.com/felix-centenera/OKD3.9_CentOS7.5.git
cd OKD3.9_CentOS7.5/vagrant/
vagrant up
vagrant ssh masterone
su root
ansible-playbook -i /root/ansible/inventories/bastion /root/ansible/playbooks/bastion.yml
ansible-playbook -i /root/ansible/inventories/ocp /root/ansible/playbooks/preparation.yml
ansible-playbook -i /root/ansible/inventories/ocp /root/release-3.9/playbooks/prerequisites.yml
ansible-playbook -i /root/ansible/inventories/ocp /root/release-3.9/playbooks/deploy_cluster.yml
ansible-playbook -i /root/ansible/inventories/ocp /root/ansible/playbooks/postinstallation.yml
oc login -u system:admin -n default
oc adm policy add-cluster-role-to-user cluster-admin admin
oc patch storageclass glusterfs-storage -p '{"metadata": {"annotations": {"storageclass.kubernetes.io/is-default-class": "true"}}}'
https://console-ocp.192.168.33.7.xip.io:8443/console/project/
user: admin
password: r3dh4t1!
Ansible-service-broker could not be deployed properly due that it tries to create a PV (Persistent Volume) without any Storage Class Defined. openshift/openshift-ansible#6377
a) oc project openshift-ansible-service-broker
b) oc delete pvc etcd
c) Login in the console: https://console-ocp.192.168.33.7.xip.io:8443/console/project/
d) Create a new pvc. Name: etcd. GiB: 1. Modes: RWO (Read-Write-Once)
e) Deploy asb-etcd and asb
f) Check that the new Pods for asb and asb-etcd are working properly.