Installing a cluster¶
You can install a cluster after setting up the environment for an OpenShift Container Platform installation. Ensure you have completed the prerequisites before installing a cluster.
Cleaning up previous installations¶
You must remove the artifacts from any failed deployment attempt before trying to deploy OpenShift Container Platform again.
Procedure
-
Power off all bare-metal nodes before installing the OpenShift Container Platform cluster by running the following command:
-
Remove all old bootstrap resources if any remain from an earlier deployment attempt by running the following script:
-
Delete the artifacts that the earlier installation generated by running the following command:
-
Re-create the OpenShift Container Platform manifests by running the following command:
Deploying the cluster via the OpenShift Container Platform installer¶
You can deploy the cluster by running the OpenShift Container Platform installer.
Procedure
-
Run the OpenShift Container Platform installer:
Following the progress of the installation¶
During the deployment process, you can check the installation’s overall status by issuing the tail command to the .openshift_install.log log file in the install directory folder.
Procedure
-
Track installation progress by running the following command:
Verifying static IP address configuration¶
Ensure that all required steps are complete and verify the network configuration is working properly.
If the DHCP reservation for a cluster node specifies an infinite lease, after the installer successfully provisions the node, the dispatcher script checks the node’s network configuration.
If the script determines that the network configuration contains an infinite DHCP lease, it creates a new connection by using the IP address of the DHCP lease as a static IP address.
Note
The dispatcher script might run on successfully provisioned nodes while the provisioning of other nodes in the cluster is ongoing.
Procedure
- Check the network interface configuration on the node.
- Turn off the DHCP server and reboot the OpenShift Container Platform node and ensure that the network configuration works properly.
Additional resources