Skip to content

oracle-quickstart/oci-openshift

Repository files navigation

OpenShift on OCI (OSO)

This repository provides the tools and configuration needed to deploy and manage Red Hat OpenShift Container Platform clusters on Oracle Cloud Infrastructure (OCI). It includes:

Overview

Installing OpenShift clusters on OCI involves two main stages:

1. Provisioning Infrastructure

Before installing OpenShift clusters, you must set up the required OCI infrastructure including Virtual Cloud Networks (VCNs), public and private subnets, compute instances (control plane and worker nodes), load balancers, IAM policies, and object storage buckets. You can provision infrastructure in two ways:

  • Using Terraform: Create OCI resources using the Terraform stack provided in this repo or available via the OCI Console. This method is recommended for connected environments.

  • Manual Provisioning: Manually create the resources using OCI Console and CLI. Use this method for disconnected or air-gapped environments, or if you can't use the OCI-provided Terraform due to policy restrictions.

2. Installing and Configuring Cluster

Deploying an OpenShift cluster on OCI combines actions performed in the Red Hat Hybrid Cloud Console and the OCI Console. You can install and configure OpenShift clusters on OCI using either the Red Hat's Assisted Installer or Agent-based Installer.

Pre-Installation

Before you begin, ensure you have:

  • A Red Hat account and access to either the Assisted Installer or the Agent-based Installer.
  • An OCI account with the required permissions to create and manage resources.
  • An internet domain to serve the OpenShift Container Platform console that runs on cluster resources in OCI.
  • An SSH key pair for cluster installation.
  • A pull secret provided from the Red Hat Hybrid Cloud Console. See Using image pull secrets in the Red Hat documentation for details.
  • (Optional) A dedicated compartment for the cluster resources. You can also use an existing compartment.
  • (Optional) An Object Storage bucket to store the discovery ISO image. You can also use an existing bucket.
  • Access to the required configuration files, including the custom manifests and terraform stacks.

Install OpenShift Clusters on OCI

Follow the installation instructions for your preferred method:

⚠️ Important: Before creating the cluster, ensure you've executed the latest version of create-attribution-tags stack. This ensures all necessary tags are available prior to cluster provisioning. You only need to run this for the first cluster deployment. Subsequent cluster deployments will not require this step, as the tags will already exist.

Post-Installation

Verify that your cluster is installed and running smoothly. For instructions see the following Red Hat documentation:

Additional Documentation

Oracle Documentation

Red Hat Documentation

Contributing

This project welcomes contributions from the community. Before submitting a pull request, please review our contribution guide

Security

Please consult the security guide for our responsible security vulnerability disclosure process

License

Copyright (c) 2022 Oracle and/or its affiliates.

Released under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl/.

About

OpenShift cluster creation on Oracle Cloud Infrastructure

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 13