Skip to content

davtur/ocp4-vsphere-upi-automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCP4 on VMware vSphere UPI Automation

The goal of this repo is to make deploying and redeploying a new Openshift v4 cluster a snap. The document looks long but after you have used it till the end once, you will appreciate how quickly VMs come up in vCenter for you to start working with.

Setup and Installation

With all the details in hand from the prerequisites, populate the vars.yml in the root folder of this repo and trigger the installation with the following command

# Make sure to run this command in the root folder of the repo
ansible-playbook -e @vars.yml setup-ocp-vsphere.yml --ask-vault-pass

Copy the bootstrap.ign file to the webserver

# Running from the root folder of this repo; below is just an example
scp install-dir/bootstrap.ign [email protected]:/var/www/html/ignition

Setup and Installation

Automated

./cluser-build.sh

Manual install

ansible-playbook -e @vars.yml setup-vcenter-vms.yml --ask-vault-pass

GSS LaB

ansible-playbook -e @vars-gsslab.yml setup-vcenter-vms.yml --ask-vault-pass
journalctl -b -f -u bootkube.service
export KUBECONFIG=/root/ocp4-vsphere-upi-automation/install-dir/auth/kubeconfig
bin/openshift-install wait-for install-complete --dir=/root/ocp4-vsphere-upi-automation/install-dir

Post Deployment Tasks

ansible-playbook -e @vars-gsslab.yml post-install.yml --ask-vault-pass

About

ocp4-vsphere-upi-automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%