Installing OpenShift 4 with Installer-Provisioned InfrastructureLast Updated October 11, 2024
To install an OpenShift cluster
with an installer-provisioned infrastructure, follow the instructions below.
This is one of the two methods to install an
OpenShift cluster. The other method is to install the cluster with a user-provisioned
infrastructure (see Installing OpenShift 4 with User-Provisioned Infrastructure). You
can use only one of the two methods.
Prepare
install-config.yaml
install-config.yaml
- Generateinstall-config.yamlwith the following command:
- Edit$MY_CLUSTER/install-config.yamlto update thenetworkingsection.
- ChangenetworkTypetoncp.
- Set thecidrvalue underclusterNetwork.
An example of
install-config.yaml
:You can validate your DNS configuration
before installing OpenShift. Here is a sample DNS zone
database:
Prepare the manifest
files
- Move the operator yaml files fromdeploy/openshift4to$MY_CLUSTER/manifests.
- Edit the operator configurations inconfigmap.yaml.
- Add the operator image and NCP image inoperator.yaml.
Create the cluster
Run the following
command:
The installation log messages are in
$MY_CLUSTER/.openshift_install.log
. If the installation
fails, check the log for error messages and make changes to the environment
accordingly. Then re-run the installation with the following
command: