OpenShift on VMware
Demo videos:
- Install OpenShift 4.6.1 via UPI on VMware https://youtu.be/6TvyHBdHhes
- OCP VMware Internal Registry Setup https://youtu.be/_60RLgkHVMw
- Chrony NTP on OpenShift https://youtu.be/_60RLgkHVMw
Access the downloads from https://cloud.redhat.com See the documentation at https://docs.openshift.com/container-platform/4.6/installing/installing_vsphere/installing-vsphere.html
-
Create your own install-config.yaml based off the template contained herein
vi install-config.yaml
-
Create a configuration directory and transfer your install-config.yaml there
mkdir -p INSTALL ; mv install-config.yaml INSTALL
-
Create your manifests
openshift-install create manifests --dir=INSTALL
-
Backup the worker node machineset
mv INSTALL/openshift/99_openshift-cluster-api_worker-machineset-0.yaml .
-
Remove the node manifests since we'll be building them manually
rm -f INSTALL/openshift/99_openshift-cluster-api_master-machines-*.yaml INSTALL/openshift/99_openshift-cluster-api_worker-machineset-*.yaml
-
Set mastersSchedulable to false
sed -i -e 's/true/false/g' INSTALL/manifests/cluster-scheduler-02-config.yml
-
Adding Windows Nodes (optional)
- Copy the network config to a new manifest
cp manifests/cluster-network-02-config.yml manifests/cluster-network-03-config.yml
- Update the
apiVersion
&spec
to support HNSapiVersion: operator.openshift.io/v1 ... ... spec: defaultNetwork: type: OVNKubernetes ovnKubernetesConfig: hybridOverlayConfig: hybridClusterNetwork: - cidr: 10.132.0.0/14 hostPrefix: 23
- Copy the network config to a new manifest
-
Create ignition files
openshift-install create ignition-configs --dir=INSTALL
-
Encode the master and worker ignition files
base64 -i INSTALL/master.ign -o INSTALL/master.64 ; base64 -i INSTALL/worker.ign -o INSTALL/worker.64
-
Copy your bootstrap.ign file to your webserver... (you're on your own here)
scp INSTALL/bootstrap.ign $server:/path/to/www
tip: Ensure you have global read permissons on that file (chmod +r bootsrap.ign) -
Create a boot-append.ign file and encode it
{ "ignition": { "config": { "merge": [ { "source": "http://$server/path/to/bootstrap.ign" } ] }, "version": "3.1.0" } }
base64 -i boot-append.ign -o boot-append.64
Your setup is now done, from here on out I would recommend viewing the demo video since we'll be using VMware vCenter.