eranco74 / bootstrap-in-place-poc

Apache License 2.0
29 stars 38 forks source link

Official fork created

Prefer contributions over in the official fork under the rh-ecosystem-edge organization:

https://github.com/rh-ecosystem-edge/bip-orchestrate-vm

!!!!!!!!!!!!!!!

See https://github.com/openshift/enhancements/pull/565

Note that this repo is just a proof-of-concept. This repo is for debugging / experimenting with single-node bootstrap-in-place installation. Clusters created by this repo are not officially supported.

bootstrap-in-place is currently unsupported (and doesn't even work) on any cloud providers, it's meant for baremetal / virtual machines that can boot arbitrary ISO files. Even for those purposes, it might be easier for you to just use the Red Hat OpenShift Assisted Installer - it's a much more friendly interface to install Single Node OpenShift on baremetal with proper configurations, validations and bootstrap-in-place support.

If you need a single-node cluster on a cloud provider - the recommended (but still currently not officially supported) way is by just using regular IPI installer and setting the install-config.yaml control plane replicas to 1 and the compute replicas to 0. This will create, during installation, a temporary extra bootstrap node which will get automatically torn down by the installer when installation is done, leaving you with a single-node OpenShift installation.

How to run - manual mode (recommended)

Since the manual mode does not have strong dependencies on any platform (i.e., platform-agnostic), it is therefore the recommended mode for this repo. However, automatic provisioning for libvirt and vsphere can be found in the How to run - automatic makefile section below.

You can now use sno-workdir/embedded.iso to install a single node cluster. The kubeconfig file can be found in ./sno-workdir/auth/kubeconfig

How to run - automatic makefile

Automatic mode using Makefiles, currently supports SNO deployments on two virtualization providers, namely libvirt and vSphere.

libvirt provider

vSphere provider

Install SNO with bootstrap in place using the Agent Based Installer (ABI) flow

Other notes