This repository provides a plan which deploys a vm where:

  • openshift-baremetal-install is downloaded with the specific version and tag specified (and renamed openshift-install)
  • stop the nodes to deploy through redfish
  • launch the install against a set of baremetal nodes. Virtual ctlplanes and workers can also be deployed

Prerequisites

ssh into baremetl server and run the following

$ sudo kcli download image rhel8
$ sudo kcli download image rhel9

Reference Git Repo: https://github.com/Red-Hat-SE-RTO/ocp4-ai-svc-universal

Configure pipelines

Git Repo: https://github.com/Red-Hat-SE-RTO/ocp4-ai-svc-universal.git

Click on import 20240320093529 Click on From URL 20240320093616 Click on Import using kcli pipelines repo 20240320093704 click on the tosin2013/kcli-pipelines.git to view repos 20240320093809

20240320093959

Start Job

Click .onedev-buildspec.yml 20240323193344

Click on kcli-openshift4-baremetal - Deploy OpenShift on KVM 20240323193525 20240323193635

Wait for deployment to complete it should take 45 minutes to 1 hour 20240323194135

20240323213443

Click on Deploy VM - Deploy FreeIPA VM first this will allow you to access the vms 20240320100623

Configure DNS

$ /opt/kcli-pipelines/configure-dns.sh

SSH into the bastion node to get the kubeconfig

ssh admin@baremetalhost.com

ssh into jump host

sudo kcli list vms
sudo kcli ssh lab-installer
[centos@lab-installer ~]$ sudo su -
[root@lab-installer ~]# ls
bin                  machineconfigs  openshift_pull.json  version.txt
cluster_ready.txt    manifests       original-ks.cfg
install-config.yaml  ocp             scripts
[root@lab-installer ~]# cat ocp/.openshift_install.log

20240324151019

Option Deploy OpenShift Workloads

OpenShift Virtulization Ensure you are using Openshift version 4.15 for menu option 5

git clone https://github.com/tosin2013/sno-quickstarts.git
cd sno-quickstarts/gitops
./configure-redhat-labs.sh

1) ./aap-instance		   7) ./kafka-plus-db
2) ./acm-gitops-deployment	   8) ./middleware-ocpv
3) ./developer-env		   9) ./rhel-edge-management
4) ./device-edge-demos		  10) ./sno-ocp-virt
5) ./equinix-cnv-virtualization	  11) ./standard-sno-deployment
6) ./equinix-developer-env	  12) ./vmware-odf-deployment
#? 8

Check the status of the deployment in ArgoCD

NOTE: You may have to set the default stroage based on deployment Type

# oc patch storageclass ocs-storagecluster-cephfs -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
# Recommened for Openshift Virtualization
# oc patch storageclass ocs-storagecluster-ceph-rbd -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'