This repository helps automate the install of OpenShift 4.x with Calico CNI for use with Windows containers
Note: Running these scripts on a Linux workstation with internet access is assumed
# pull this repo
git clone https://github.com/codekow/demo-ocp-calico.git
cd demo-ocp-calico
# setup vmware roles (optional)
. hacks/vsphere_roles.sh
vsphere_create_roles
# copy existing install-config.yml into install folder (optional)
mkdir -p generated/ocp-calico-install
cp install-config.yaml generated/ocp-calico-install/
# easy install button :)
hacks/install_ocp_calico.sh
# run openshift-install
openshift-install create cluster --dir generated/ocp-calico-install
Add vSphere folder path to install-config.yml
at the following level in the yaml
platform:
vsphere:
# example folder path
# folder: /${{ datacenter }}/vm/${{ folder path}}
folder: /Central/vm/Sandbox/ocp4.tigerlab.io
vcenter: 10.1.2.3
...
See install-config-vsphere.yaml.j2 for common vSphere options.
Assumption: Two vCenter Accounts
- Admin Account
- Installer Account (w/ roles assigned)
hacks/vsphere_roles.sh
is available to help automate the creation of vCenter roles with a vCenter administrator account.
Assign the following roles to the vCenter account being used to install OpenShift at various levels in vCenter listed below.
Role Name | Propagate | Entity |
---|---|---|
openshift-vcenter-level | False | vCenter |
ReadOnly | False | Datacenter |
openshift-cluster-level | True | Cluster |
openshift-datastore-level | False | Datastore |
ReadOnly | False | Switch |
openshift-portgroup-level | False | Port Group |
ReadOnly | True | Virtual Machine folder (Top Level) |
openshift-folder-level | True | Virtual Machine folder |
In a cascading (nested) folder organization you will need "Read-only
" permissions
with "Propagate to children
" from the top folder level.
Example Service Account: OCPInstaller
- Convert hacks to Ansible
Tigera Docs
- OpenShift 4.x Calico Install (Windows)
- OpenShift 4.x Calico Install
- OpenShift 4.x Calico Enterprise Upgrade
OpenShift Docs