Cluster Installation#

OpenShift Container Platform nodes in the cluster need access to an NTP server. OpenShift Container Platform nodes use NTP to synchronize their clocks.

OpenShift Assisted Installer#

Installer-provisioned installation configures the infrastructure on which OpenShift cluster runs.

Follow the steps outlined to install an OpenShift cluster:

  1. Open a web browser on Jump Node, connect to Red Hat Cloud site and log into the console with your credentials.

    picture of the Red Hat Cloud website
  2. Click the OpenShift link.

    picture of Manage OpenShift Clusters link
  3. Click Clusters List under the left menu bar and then click Create Cluster.

    picture of the Create Cluster button
  4. Select Datacenter tab and click Bare Metal (x86_64) under the Infrastructure provider column.

    picture of the datacenter types for OpenShift
  5. Select the Interactive option.

    picture of the the integrated option
  6. In Cluster Details window, enter Cluster Name and Base Domain. Click the OpenShift version selector, scroll down to the end, and click Show all available versions. Select OpenShift 4.18.20 from the Available OpenShift Versions dialog box and click Next.

    picture of the OpenShift Assisted Installer
    picture of the available OpenShift versions
  7. For Standard cluster or Compact (3-node) cluster, select 3 (highly available cluster). For SNO, select 1 (Single Node OpenShift) from Number of control plane nodes dropdown.

    picture of the number of control plane nodes
  8. Click Next without selecting any Operator checkboxes.

    picture of the OpenShift Additional Operators
  9. Click Add hosts.

    picture of adding hosts
  10. In the Add hosts pop-up, select Provisioning type as Minimal image file - Download an ISO that fetches content on boot, browse to SSH public key (in ~/.ssh/.id_rsa.pub on jump node) and click Generate Discovery ISO.

    picture of the Generate Discovery ISO
  11. Click Download Discovery ISO.

    picture of Download Discovery ISO button
  12. Boot all the servers in the cluster using Discovery ISO file.

  13. After a few minutes, all the hosts will appear on the web console. Wait for them to reach Ready status. Rename the hosts to a more identifiable name, for example, h4m-a, h4m-b, h4m-c, and so on, by clicking each host name.

    picture of Host Discovery window
  14. Assign roles to each host using the Role dropdown list for example, Control plane node for control planes and Worker for compute/worker nodes. Click the Next button. For a compact cluster or SNO, select Control plane, Worker as the role for all nodes.

    picture of assigned roles on host discovery window
  15. Leave default settings for storage. This will format all hard drives on each system.

    picture of default storage settings
  16. In the Networking tab, provide API IP and Ingress IP, and click Next. For SNO, there will be no option available to specify API IP and Ingress IP.

    picture of network settings
  17. Review cluster details and click Install Cluster.

    picture of install summary for review
  18. Cluster installation will take 45–60 minutes to complete.

    picture of cluster details
  19. After installation completes, save the kubeconfig file by clicking the Download kubeconfig button and also make a note of the Web Console URL, Username, Password.

    picture of Download kubeconfig button

    Note

    If you are not able to access the web console, refer to IP Addresses and DNS Records or click Not able to access the Web Console to get a troubleshooting dialog box with information to access the cluster.

    picture of OpenShift web console troubleshooting window
  20. Copy the kubeconfig file to ~/.kube/config on the jump node.

  21. Verify that the cluster is installed properly:

    • Using the Web console:

      • Open Web Console URL from the above step in a browser on the jump node and login using the provided username, password.

        picture of OpenShift login page
        • Make sure Cluster Status is OK/green.

        • Using the menu on the left side, navigate to Compute > Nodes. Ensure Status of each node is Ready.

        Detailed information about each node is available by clicking the node name.

        picture of OpenShift node information page
    • Using the CLI:

      oc get nodes
      
      NAME STATUS ROLES AGE VERSION
      h4m-a Ready control-plane,master 11h v1.31.9
      h4m-b Ready control-plane,master 11h v1.31.9
      h4m-c Ready control-plane,master 11h v1.31.9
      h4m-d Ready worker 11h v1.31.9
      h4m-e Ready worker 11h v1.31.9
      

Note

To interact with an OpenShift cluster from a command-line interface, OpenShift CLI must be installed. You can install oc on Linux, Windows, or macOS. See Installing the OpenShift CLI.