Deploys OKD cluster using vagrant and virtualbox.
Installation steps are based on this Spirited Engineering post
- Debian 10.7
- Linux 4.19.0-13-amd64
- Virtual Box 6.1.16-140961~Debian~buster
- Vagrant 1:2.2.10
Execute from virtualbox host server:
host:repo_path$ vagrant up
repo_path> vagrant.exe up
- Vagrant 2.2.5
- VirtualBox 6.0.4r128413
- VirtualBox 6.0.4r128413 Extension Pack
NOTE: Some rsync problems have been detected with different Vagrant version than 2.2.5
.
It takes long time to set up the cluster (around 20 minutes). After this, it's possible to check the openshift cluster nodes with:
Add to the hosts file the following entry (Update it with the corresponding one if it has been changed in config file file for master node)
192.168.50.11 master.okd.local
to access to the web console using the following URL:
https://master.okd.local:8443/
- (NOTE I) A self-signed certificate warning may appears in the browser and it has to be accepted.
- (NOTE II) Default credentials provisioned in these deployment scripts are
admin / okdadmin123
)
host$ vagrant ssh master
host$ vagrant ssh infra
host$ vagrant ssh compute
master$ sudo su -
master# ansible all -m ping
master# cd /usr/share/ansible/openshift-ansible/playbooks/
master# ansible-playbook prerequisites.yml
master# ansible-playbook deploy_cluster.yml
master# oc get nodes
NAME STATUS ROLES AGE VERSION
compute Ready compute 23m v1.9.1+a0ce1bc657
infra Ready <none> 23m v1.9.1+a0ce1bc657
master Ready master 23m v1.9.1+a0ce1bc657