Red Hat OpenShift Container Platform Manual Installation on Nutanix AOS (AHV)¶
Note
Visit the Red Hat OpenShift Container Platform documentation to learn more about the tested AOS and Prism Central versions.
Installation Prerequisites¶
- Before installing OpenShift Container Platform, download the installation file on a local computer. A computer that runs Linux or macOS, with 500 MB of local disk space is required.
- Access the Platform Agnostic User-Provisioned Infrastructure page on the Red Hat OpenShift Cluster Manager site. If you have a Red Hat account, log in with your credentials. If you do not, create an account.
- Follow the steps to download the OpenShift installer, pull secret, command-line tools (CLI), and Red Hat Enterprise Linux CoreOS (RHCOS) ISO. Additional details can be found in the OpenShift documentation.
- Review the User Provisioned Infrastructure documentation for the version of OpenShift Container Platform you wish to install.
Additional Infrastructure Requirements¶
- Follow OpenShift documentation to:
- Configure Networking requirements for user-provisioned infrastructure (documentation). This includes:
- Network topology requirements
- API load balancer
- Application Ingress load balancer
- NTP configuration
- DNS requirements
- Network topology requirements
- Generate an SSH private key and add it to the agent (documentation). This key is used to access the bootstrap machine in a public cluster to troubleshoot installation issues.
- Configure Networking requirements for user-provisioned infrastructure (documentation). This includes:
Create and stage the Installation Config and Manifests¶
- Follow OpenShift documentation to:
- Manually create the installation configuration file (documentation).
- Create the Kubernetes manifest and Ignition config files (documentation).
- Configure a web server that is accessible from the network attached to the OpenShift VMs. This server will host the ignition config files.
- Copy the ignition files onto the web server so they can be passed to the OpenShift VMs for installation.
RHCOS Virtual Machine Creation¶
- Access the Prism Central or Prism Element instance managing the AOS cluster where you would like to install OpenShift.
- From the main menu, browse to Virtual Infrastructure → Images, and follow prompts to upload the RHCOS iso downloaded as part of the prerequisites. Prism Element users will find image configuration by browsing to ⚙ → Image Configuration.
- If a new subnet is required, browse to Network & Security → Subnets and create it. If this network is not configured with Nutanix IPAM and doesn’t have DHCP (with reservation) available, VMs will require manual network configuration at boot.
-
Create the VMs that will be used in the OpenShift cluster. Machine requirements and their minimum resource requirements can be found in the OpenShift documentation.
-
Browse to Virtual Infrastructure → VMs, then Create VM and follow prompts to create VMs using the settings below.
- Specify the number of vCPUs and memory as required.
-
Attach the RHCOS iso by cloning the uploaded image.
-
Attach an additional disk meeting the storage requirements of the VM.
-
Attach the required subnet to the VM. If this network is configured with IP Address Management (IPAM), choose Assign Static IP and specify the appropriate address. Note that for subnets without IPAM or DHCP (with reservation), VMs will initially require manual network configuration at boot.
-
Under Boot Configuration, choose Legacy BIOS Mode with Default Boot Order.
- Add any required Categories, choose UTC Timezone, and No Guest Customization.
- Review settings and complete VM creation.
-
-
From the main menu, browse to Virtual Infrastructure → VMs. From the List view, select each VM, power it on, and launch the console from the Action menu. Depending on the type of machine, run the following example command in the console:
Note: The commands below assume the provisioned subnet has IPAM or DHCP (with reservation) configured and VMs have a static IP assigned. If manual network configuration is required, follow the steps documented in OpenShift documentation .
-
Bootstrap
sudo coreos-installer install /dev/sda --copy-network --ignition-url=https://<host+path>/bootstrap.ign
-
Control Plane
sudo coreos-installer install /dev/sda --copy-network --ignition-url=https://<host+path>/master.ign
-
Compute
sudo coreos-installer install /dev/sda --copy-network --ignition-url=https://<host+path>/worker.ign
-
-
After RHCOS installs, unmount the iso and reboot the VM. During the reboot, the Ignition config file is applied.
Creating the OpenShift Cluster¶
- Follow OpenShift documentation to:
- Create and log into the cluster (documentation).
- Approve certificate signing requests and watch the cluster components come online (documentation).
- Monitor for cluster completion (documentation).
Post Install¶
- Follow the post install instructions to complete cluster configuration.