/OCP4-Workshop

Primary LanguageShellGNU General Public License v3.0GPL-3.0

ℹ️
ALTHOUGH THIS PROJECT IS FOCUSED ON DELIVERING AN OPENSHIFT WORKSHOP FOR EDUCATIONAL PURPOSES, THE PLAYBOOKS CAN BE USED TO AID INSTALLATION OF OPENSHIFT IN MANY DIFFERENT ENVIRONMENTS

Usage

ℹ️
This "workshop" project and playbooks strive to mimic the hands-on UPI approach to deploying an Openshift cluster. Shell commands are often used in preference to otherwise fanstastic ansible modules in order to preserve the steps outlined in the actual installation guide. Also, these playbooks opt to use standard OS services vs. many of the (recently available) prepackaged containerized solutions. This lends to the backwards compatability and broad customization that is possible with this solution. At this time, deployments as far back as Openshift 4.2 are still possible using this project.

Default architecture is 7 systems:

  • bastion - utility vm

  • bootstrap - ocp installation provisioner

  • masters-{0,1,2}

  • workers-{0,1}

You can avoid a dedicated bootstrap node if you elect the "strapless" configuration. In this case one of the workers (OCP < 4.11) or once of the masters (OCP >= 4.11) is used as a temporary bootstrap during the deployment.

Deployment methods include PXE & virtual-Media for both BIOS and UEFI based systems.

After reworking the UEFI-PXE setup, the matrix of tested deployments shown below.

All of these methods should work on

Baremetal
RHV 4.4+ with compatability set to 4.7 (oVirt 4.7)
RHEL (8 or 9) + Libvirt
                | BIOS                  | UEFI                          |
        | Ver   | PXE   | MEDIA | AI    | PXE   | HTTP  | MEDIA | AI    |
--------|-------|-------|-------|-------|-------|-------|-------|-------|
OCP     | 4.2   | Y     | Y     | x     | -     | ?     | Y     | x     |
OCP     | 4.3   | Y     | Y     | x     | Y     | Y     | Y     | x     |
OCP     | 4.4   | Y     | Y     | x     | Y     | Y     | Y     | x     |
OCP     | 4.5   | Y     | Y     | x     | Y     | Y     | Y     | x     |
OCP     | 4.6   | Y     | Y     | x     | Y     | Y     | Y     | x     |
OCP     | 4.7   | Y     | Y     | x     | Y     | Y     | Y     | x     |
OCP     | 4.8   | Y     | Y     | x     | Y     | Y     | Y     | x     |
OCP     | 4.9   | Y     | Y     | Y     | Y     | Y     | Y     | Y     |
OCP     | 4.10  | Y     | Y     | Y     | Y     | Y     | Y     | Y     |
OCP     | 4.11  | Y     | Y     | Y     | Y     | Y     | Y     | Y     |
OCP     | 4.12  | Y     | Y     | Y     | Y     | Y     | Y     | Y     |
OCP     | 4.13  | Y     | Y     | Y     | Y     | Y     | Y     | Y     |
OCP     | 4.14  | Y     | Y     | Y     | Y     | Y     | Y     | Y     |

x : does not work, no intent to enable|fix b : does not work (broken), hope to fix Y : verified ? : untested

You can can also deploy a SNO (Single Node Openshift) instance using the Assisted Installer (AI) provisioner.

At the completion of the install, the bootstrap node has served it’s purpose and can be safely shutdown (or deleted).

1. Deployment Guides

Select one of the following deployment guides based on your platform:

2. Workshop Guide and Exercises

Master document for the workshop & exercises be found here: