Check my earlier postings.: –

OpenShift Deploying on any platform Using a UPI method – https://kdinesh.in/openshift/

OpenShift Deploying on vSphere Using Ansible – https://kdinesh.in/ocp4-14/

OpenShift Deployment on OpenStack Cloud using a Heat stack: – https://kdinesh.in/ocp_openstack/

Internet Access

DHCP Server – One dedicated Network for deploying OpenShift Cluster.

Three Static IPs – Two IPs for OCP Cluster and one IP for OVA deployment.

DNS Records –

Create DNS records for API VIP and Ingress VIP DNS A/AAAA and PTR Records with Cluster name

api.<cluster_name>.<base_domain>.                               # api.ocp4.dineshk.in

*.apps.<cluster_name>.<base_domain>.                         # *. apps.ocp4.dineshk.in

vSphere account privileges

One Public SSH Key

Pull Secret – You can download it using the following link – https://console.redhat.com/openshift/install/pull-secret

resources – CPU, Memory, Storage.

Please refer to the official doc for more details – https://docs.openshift.com/container-platform/4.14/installing/installing_vsphere/installing-vsphere-installer-provisioned-network-customizations.html

Download the OVA file using the below link: –

https://github.com/Dineshk1205/ocpova/releases/tag/ocp

OVA is Based on the Photon OS 5 . It’s a Lightweight OS. Ova will provision the OCP Cluster.

OVA deployment required one static IP with internet access.

Login to vSphere

Right-click on Host or Cluster. Choose the Deploy OVF Template option.

Click on Upload Files and Select downloaded OVA file. Next.

Select a name and folder > next.

Select a Compute resource > next.

Next.

Select Storage (OVA VM storage).

Select Network.

In the Customize Template Section. Cluster Deployment required inputs required.

Options

Remarks

Master Node Disk Size

Min 100GB; otherwise, cluster deployment will fail.

Master Node Count

Min nodes 3 Maximum Nodes 5

Master Node Memory

Min required 16 GB for master/control nodes.

Master Nodes vCPUs

Min 4, recommended 8.

Enter OpenShift Master Nodes values. Recommended 8 vCPUs for master nodes.

Enter Worker/Compute node values. Recommended min 4 vCpus for worker nodes.

Options

Remarks

Worker Node vCPUs

Recommended 4 vCPUs

Worker Node Memory

Min 8GB required

Worker Node Disk Size

Min 100Gb required. Otherwise, Cluster Deploy will Fail.

OpenShift Worker/Compute Node Count

Based on your requirements, you can enter value.

Enter vCenter values. Enter vCenter Username, Password, Folder, Datacenter Name, Datastore Name, vCenter FQDN, DHCP Network (DHCP Network, OpenShift Deployment required DHCP Network).

Options

Remarks

vCenter Username

vCenter User name: The user has required roles and permission for deploying the OCP Cluster.

vCenter Password

vCenter User Password

vCenter Folder

OCP Cluster deployed on this folder

vCenter Network

OCP Cluster nodes used must be DHCP Network.

vCenter Cluster

OCP Cluster VM deployment Cluster

vCenter Datacenter

OCP Cluster VM Deployment Datacenter

vCenter Datastore

OCP Cluster VMs will be used.

vCenter FQDN

Enter FQDN name. Don’t Specify IP.

Options

Remarks

OpenShift Cluster Name

Cluster name, API and Ingress DNS records created with this cluster name

OpenShift API IP

API IP

Base Domain

Domain name

OpenShift Version

Select OCP Version

Enter Cluster Name, API VIP, Ingress IP, and Base Domain and select OpenShift Version.

Options

Remarks

OpenShift CNI Plugin

Select OVA Kubernetes or OpenShift SDN

OpenShift Service Network

Internal Network

OpenShift Machine Network

Assigned to Cluster Nodes

OpenShift Cluster Network

Internal Pod Network

Select OpenShift Cluster CNI. You can refer to the Office doc to understand the Service, Machine, and Cluster Network.

Options

Remarks

SSH Public Key

SSH Key injected to all cluster nodes. You can access nodes using the core user.

Pull Secret

You can download it from the Redhat Portal, convert it to base 64, and paste the secret key.

Paste SSH Public Key and Base 64 format PULL Secret Key.

Options

Remarks

Domain Name

OVA VM Domain name

Gateway

Gateway IP configured to OVA deployment VM

Hostname

You can give any name.

DNS

DNS Configure to OVA VM

IP Address

The IP address for the OVA VM

Netmask

Enter netmask

Enter OVA deployment VM Values.

Review the details and click on FINISH.

OVA Deployment Started. You can check the status in the Recent Task Bar.

Once Deployment is completed, start the VM.

Wait for 1 minute after powering on the VM. Access VM using Putty or any SSH tool—log into VM to check the deployment status and logs.

OVA Default – Username – root

Password – Ocp@2024

You can use the below command to monitor deployment and logs.

$ journalctl -f -u rc-local.service

You can relax. Deployment takes Approximately 45 to 50 minutes.

In the vCenter OpenShift Folder Cluster, VMs are created.

You export kubeconfig to check the node status

Directory – /root/ocp

Export kubeconfig

$ export KUBECONFIG=/root/ocp/auth/kubeconfig