-
Terraform Stacks: The Terraform stack code for provisioning OCI resources to create and manage OKD clusters on OCI.
-
Custom Manifests: The manifest files needed for the installation of OKD clusters on OCI.
You can use the Assisted Installer to install a cluster on Oracle® Cloud Infrastructure (OCI). This method is recommended for most users, and requires an internet connection.
If you want to set up the cluster manually or using other automation tools, or if you are working in a disconnected environment, you can use the Red Hat Agent-based Installer for the installation. For details, see Installing a cluster on Oracle Cloud Infrastructure (OCI) by using the Agent-based Installer.
You can run cluster workloads on Oracle® Cloud Infrastructure (OCI) infrastructure that supports dedicated, hybrid, public, and multiple cloud environments. Both Red Hat and Oracle test, validate, and support running OCI in an OKD cluster on OCI.
This section explains how to use the Assisted Installer to install an OKD cluster on the OCI platform. The installation deploys cloud-native components such as Oracle Cloud Controller Manager (CCM) and Oracle Container Storage Interface (CSI), and integrates your cluster with OCI API resources such as instance node, load balancer, and storage.
The installation process uses the OKD discovery ISO image provided by Red Hat, together with the scripts and manifests provided and maintained by OCI.
Before installing OKD on Oracle Cloud Infrastructure (OCI), you must consider the following configuration choices.
The integration between OKD and Oracle Cloud Infrastructure (OCI) is certified on both virtual machines (VMs) and bare-metal (BM) machines. Bare-metal installations using iSCSI boot drives require a secondary vNIC that is automatically created in the Terraform stack provided by Oracle.
Before you create a virtual machine (VM) or bare-metal (BM) machine, you must identify the relevant OCI shape. For details, see the following resource:
To ensure the best performance conditions for your cluster workloads that operate on OCI, ensure that volume performance units (VPUs) for your block volume are sized for your workloads. The following list provides guidance for selecting the VPUs needed for specific performance needs:
Test or proof of concept environment: 100 GB, and 20 to 30 VPUs.
Basic environment: 500 GB, and 60 VPUs.
Heavy production environment: More than 500 GB, and 100 or more VPUs.
Consider reserving additional VPUs to provide sufficient capacity for updates and scaling activities. For more information about VPUs, see Volume Performance Units (Oracle documentation).
Find recommended values for compute instance CPU, memory, VPU, and volume size for OKD nodes. For details, see Instance Sizing Recommendations for OKD on OCI Nodes (Oracle documentation).
The procedure for using the Assisted Installer in a connected environment to install a cluster on OCI is outlined below:
In the OCI console, configure an OCI account to host the cluster:
Create a new child compartment under an existing compartment.
Create a new object storage bucket or use one provided by OCI.
Download the stack file template stored locally.
In the Assisted Installer console, set up a cluster:
Enter the cluster configurations.
Generate and download the discovery ISO image.
In the OCI console, create the infrastructure:
Upload the discovery ISO image to the OCI bucket.
Create a Pre-Authenticated Request (PAR) for the ISO image.
Upload the stack file template, and use it to create and apply the stack.
Copy the custom manifest YAML file from the stack.
In the Assisted Installer console, complete the cluster installation:
Set roles for the cluster nodes.
Upload the manifests provided by Oracle.
Install the cluster.
The steps for provisioning OCI resources are provided as an example only. You can also choose to create the required resources through other methods; the scripts are just an example. Installing a cluster with infrastructure that you provide requires knowledge of the cloud provider and the installation process on OKD. You can access OCI configurations to complete these steps, or use the configurations to model your own custom script. |
Before installing OKD using Assisted Installer, create the necessary resources and download the configuration file in the OCI environment.
You have an OCI account to host the cluster.
If you use a firewall and you plan to use a Telemetry service, you configured your firewall to allow OKD to access the sites required.
Log in to your Oracle Cloud Infrastructure (OCI) account with administrator privileges.
Configure the account by defining the Cloud Accounts and Resources (Oracle documentation). Ensure that you create the following resources:
Create a child compartment for organizing, restricting access, and setting usage limits to OCI resources. For the full procedure, see Creating a Compartment (Oracle documentation).
Create a new object storage bucket into which you will upload the discovery ISO image. For the full procedure, see Creating an Object Storage Bucket (Oracle documentation).
Download the latest version of the create-cluster-vX.X.X.zip
configuration file from the oracle-quickstart/oci-openshift
repository. This file
provides the infrastructure for the cluster and contains configurations for the following:
Terraform Stacks: The Terraform stack code for provisioning OCI resources to create and manage OKD clusters on OCI.
Custom Manifests: The manifest files needed for the installation of OKD clusters on OCI.
To make any changes to the manifests, you can clone the entire Oracle GitHub repository and access the |
For details, see Configuration Files (Oracle documentation).
Create the cluster configuration and generate the discovery ISO image in the Assisted Installer web console.
You created a child compartment and an object storage bucket on OCI. For details, see Preparing the OCI environment.
You reviewed details about the OKD installation and update processes.
Set the cluster details.
Log into Assisted Installer web console with your credentials.
In the Red Hat OpenShift tile, select OpenShift.
In the Red Hat OKD tile, select Create Cluster.
On the Cluster Type page, scroll down to the end of the Cloud tab, and select Oracle Cloud Infrastructure (virtual machines).
On the Create an OpenShift Cluster page, select the Interactive tile.
On the Cluster Details page, complete the following fields:
Field | Action required |
---|---|
Cluster name |
Specify the name of your cluster, such as |
Base domain |
Specify the base domain of the cluster, such as This must be the same value as the zone DNS server in OCI. |
OpenShift version |
* For installations on virtual machines only, specify * For installations that include bare metal machines, specify |
CPU architecture |
Specify |
Integrate with external partner platforms |
Specify After you specify this value, the Include custom manifests checkbox is selected by default and the Custom manifests page is added to the wizard. |
Leave the default settings for the remaining fields, and click Next.
On the Operators page, click Next.
Generate and download the Discovery ISO image.
On the Host Discovery page, click Add hosts and complete the following steps:
For the Provisioning type field, select Minimal image file.
For the SSH public key field, add the SSH public key from your local system, by copying the output of the following command:
$ cat ~/.ssh/id_rsa.put
The SSH public key will be installed on all OKD control plane and compute nodes.
Click Generate Discovery ISO to generate the discovery ISO image file.
Click Download Discovery ISO to save the file to your local system.
When using the Assisted Installer to create details for your OKD cluster, you specify these details in a Terraform stack. A stack is an OCI feature that automates the provisioning of all necessary OCI infrastructure resources that are required for installing an OKD cluster on OCI.
You downloaded the discovery ISO image to a local directory. For details, see "Using the Assisted Installer to generate an OCI-compatible discovery ISO image".
You downloaded the Terraform stack template to a local directory. For details, see "Preparing the OCI environment".
Log in to your Oracle Cloud Infrastructure (OCI) account.
Upload the discovery ISO image from your local drive to the new object storage bucket you created. For the full procedure, see Uploading an Object Storage Object to a Bucket (Oracle documentation).
Locate the uploaded discovery ISO, and complete the following steps:
Create a Pre-Authenticated Request (PAR) for the ISO from the adjacent options menu.
Copy the generated URL to use as the OpenShift Image Source URI in the next step.
For the full procedure, see Creating a Pre-Authenticated Requests in Object Storage (Oracle documentation).
Create and apply the Terraform stack:
The Terraform stack includes files for creating cluster resources and custom manifests. The stack also includes a script, and when you apply the stack, the script creates OCI resources, such as DNS records, an instance, and so on. For a list of the resources, see Terraform Defined Resources for OpenShift on OCI README file. |
Upload the Terraform stack template create-cluster-vX.X.X.zip to the new object storage bucket.
Complete the stack information and click Next.
|
Click Apply to apply the stack.
For the full procedure, see Creating OKD Infrastructure Using Resource Manager (Oracle documentation).
Copy the dynamic_custom_manifest.yml
file from the Outputs page of the Terraform stack.
The YAML file contains all the required manifests, concatenated and preformatted with the configuration values. For details, see the Custom Manifests README file. |
For the full procedure, see Getting the OKD Custom Manifests for Installation (Oracle documentation).
After you provision Oracle® Cloud Infrastructure (OCI) resources and upload OKD custom manifest configuration files to OCI, you must complete the remaining cluster installation steps on the Assisted Installer before you can create an instance OCI. These steps include assigning node roles and adding custom manifests.
Following host discovery, the role of all nodes appears as Auto-assign by default. Change each of the node roles to either Control Plane node or Worker.
You created and applied the Terraform stack in OCI. For details, see "Provisioning OCI infrastructure for your cluster".
From the Assisted Installer user interface, go to the Host discovery page.
Under the Role column, select either Control plane node or Worker for each targeted hostname. Then click Next.
|
Accept the default settings for the Storage and Networking pages. Then click Next.
Add the mandatory custom manifests provided by Oracle. For details, see Custom Manifests (Oracle documentation).
You copied the dynamic_custom_manifest.yml
file from the Terraform stack in OCI. For details, see "Provisioning OCI infrastructure for your cluster".
On the Custom manifests page, in the Folder field, select manifests
. This is the Assisted Installer folder where you want to save the custom manifest file.
In the File name field, enter a filename, for example, dynamic_custom_manifest.yml
.
Paste the contents of the dynamic_custom_manifest.yml
file that you copied from OCI:
In the Content section, click the Paste content icon.
If you are using Firefox, click OK to close the dialog box, and then press Ctrl+V. Otherwise, skip this step.
Click Next to save the custom manifest.
From the Review and create page, click Install cluster to create your OKD cluster on OCI.
After the cluster installation and initialization operations, the Assisted Installer indicates the completion of the cluster installation operation. For more information, see "Completing the installation" section in the Assisted Installer for OKD document.
Verify that your cluster was installed and is running effectively on Oracle® Cloud Infrastructure (OCI).
From the Red Hat Hybrid Cloud Console, go to Clusters > Assisted Clusters and select your cluster’s name.
On the Installation Progress page, check that the Installation progress bar is at 100% and a message displays indicating Installation completed successfully
.
Under Host inventory, confirm that the status of all control plane and compute nodes is Installed
.
OKD designates one of the control plane nodes as the bootstrap virtual machine, eliminating the need for a separate bootstrap machine. |
Click the Web Console URL, to access the OKD web console.
From the menu, select Compute > Nodes.
Locate your node from the Nodes table.
From the Terminal tab, verify that iSCSI appears next to the serial number.
From the Overview tab, check that your node has a Ready status.
Select the YAML tab.
Check the labels
parameter, and verify that the listed labels apply to your configuration. For example, the topology.kubernetes.io/region=us-sanjose-1
label indicates in what OCI region the node was deployed.
If you experience issues with using the Assisted Installer to install an OKD cluster on Oracle® Cloud Infrastructure (OCI), read the following sections to troubleshoot common problems.
This issue is classed as a Warning
because by using OCI to create a stack, you created a pool of compute nodes, 3 by default, that are automatically added as backend listeners for the Ingress Load Balancer. By default, the OKD deploys 2 router pods, which are based on the default values from the OKD manifest files. The Warning
is expected because a mismatch exists with the number of router pods available, two, to run on the three compute nodes.
Warning
message that is under the Backend set information tab on OCIYou do not need to modify the Ingress Load Balancer configuration. Instead, you can point the Ingress Load Balancer to specific compute nodes that operate in your cluster on OKD. To do this, use placement mechanisms, such as annotations, on OKD to ensure router pods only run on the compute nodes that you originally configured on the Ingress Load Balancer as backend listeners.
On attempting to create a stack on OCI, you identified that the Logs section of the job outputs an error message. For example:
Error: 400-InvalidParameter, DNS Label oci-demo does not follow Oracle requirements
Suggestion: Please update the parameter(s) in the Terraform config as per error message DNS Label oci-demo does not follow Oracle requirements
Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/core_vcn
Go to the Install OpenShift with the Assisted Installer page on the Hybrid Cloud Console, and check the Cluster name field on the Cluster Details step. Remove any special characters, such as a hyphen (-
), from the name, because these special characters are not compatible with the OCI naming conventions. For example, change oci-demo
to ocidemo
.