Skip to content

Process to install OKD 3.9 (Free OpenShift 3.9) + CNS in VirtualBox. Vagrant generate the VMs and resources for us. Ansible will install requistes and OKD 3.9 for us.

Notifications You must be signed in to change notification settings

felix-centenera/Lab-OKD3.9_CentOS7.5_CNS-6VMs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy OKD 3.9 (Free OpenShift 3.9) & CentOS 7 & VirtualBox & Vagrant & Ansible

Description

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.

Tested A

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)

Tested B

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)

Tested C

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)

Infrastructure

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.

alt text

Details

User Virtual Machine:

user: root

password: vagrant

user: vagrant

password: vagrant

Openshift admin user:

user: admin

password: r3dh4t1!

Software requisites to stat the project

a) Git.

b) VirtualBox

c) Vagrant

d) Install Vagrant plugin: vagrant plugin install vagrant-hostmanager

Download the project

git clone  https://github.com/felix-centenera/OKD3.9_CentOS7.5.git

Generate VirtualBox Machines with Vagrant

cd OKD3.9_CentOS7.5/vagrant/

vagrant up

Login in the bastion

vagrant ssh masterone

Prepare the bastion node

su root

ansible-playbook -i /root/ansible/inventories/bastion /root/ansible/playbooks/bastion.yml

Prepare the rest of the nodes for OKD 3.9

ansible-playbook -i /root/ansible/inventories/ocp /root/ansible/playbooks/preparation.yml

Check prerequisites of the nodes for OKD 3.9

ansible-playbook -i /root/ansible/inventories/ocp  /root/release-3.9/playbooks/prerequisites.yml

Install OKD 3.9

ansible-playbook -i /root/ansible/inventories/ocp /root/release-3.9/playbooks/deploy_cluster.yml

Post installation OKD 3.9

ansible-playbook -i /root/ansible/inventories/ocp /root/ansible/playbooks/postinstallation.yml

Prepare OKD 3.9

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"}}}'

Start using OKD 3.9

https://console-ocp.192.168.33.7.xip.io:8443/console/project/

user: admin

password: r3dh4t1!

Ansible-service-broker

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)

alt text

e) Deploy asb-etcd and asb

f) Check that the new Pods for asb and asb-etcd are working properly.

alt text

About

Process to install OKD 3.9 (Free OpenShift 3.9) + CNS in VirtualBox. Vagrant generate the VMs and resources for us. Ansible will install requistes and OKD 3.9 for us.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages