Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

codekow/demo-ocp-calico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenShift 4.4+ Calico (Windows) Install

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

QuickStart

# 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

VMware Notes

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)

Admin Account

hacks/vsphere_roles.sh is available to help automate the creation of vCenter roles with a vCenter administrator account.

Installer Account

Assign the following roles to the vCenter account being used to install OpenShift at various levels in vCenter listed below.

Precreated virtual machine folder in vSphere vCenter

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

Folder Tree Example

ToDO

  • Convert hacks to Ansible

Links

Tigera Docs

OpenShift Docs