Note:

Enable Seamless Access to Red Hat OpenShift Container Platform on OCI from On-Premises to VCNs in the Same Region

Introduction

Remote connectivity to a Red Hat OpenShift Container Platform on Oracle Cloud Infrastructure (OCI) cluster enhances flexibility and operational efficiency by enabling centralized management and collaboration across distributed teams. It supports hybrid cloud set up, ensuring scalability and smooth communication. Secure connections also promote business continuity and cost efficiency, streamlining operations and maintaining resilient access across diverse network segments.

This tutorial guides users on connecting their on-premises environments and OCI VCNs within the same region to a Red Hat OpenShift Container Platform cluster. It covers networking configurations and best practices for establishing secure, seamless connectivity, ensuring optimal cluster performance across environments.

Architecture

RackWare RMM BYOL

Objectives

Prerequisites

Task 1: Enable Red Hat OpenShift Container Platform on OCI VCN Domain Name System (DNS) Listener

  1. Log in to the OCI Console, navigate to Networking, Virtual cloud networks, Virtual Cloud Networks Details and click the DNS resolver link.

    RackWare RMM BYOL

  2. Click Endpoints and enter the following information to create endpoint. Click Create endpoint.

    • Name: Enter openshift_listener.
    • Choose a subnet: Select the private subnet.
    • Endpoint type: Select Listening.
    • Listening IP address: Leave it blank.

    RackWare RMM BYOL

    This will create a listener endpoint. Take a note of this IP as it will be needed in next task.

    Add Host to DR Wave

Task 2: Set up DNS Forwarder on the Workload VCN

In this task, we will create and enable DNS forwarder on the workload VCN.

  1. Go to the OCI Console, navigate to Networking, Virtual cloud networks and click the workload VCN.

  2. Click the DNS resolver link and Endpoints.

  3. Click Create endpoint and enter the following information.

    • Name: Enter wrk_vcn_forwarder.
    • Choose a subnet: Select the private subnet.
    • Endpoint type: Select Forwarding.
    • Listening IP address: Leave it blank.

    Template for vCenter

    This will create a forwarder endpoint.

    Template for vCenter

  4. Click Rules and Manage rules. Enter the following information and save.

    • Rule condition: Enter Domains.
    • Enter Source endpoint.
    • Destination IP address: Enter the Red Hat OpenShift VCN listener address that is 10.73.18.16.

    RackWare RMM BYOL

    The following image shows the set up so far.

    RackWare RMM BYOL

Task 3: Enable the Communication on Red Hat OpenShift VCN Private Subnet

  1. Navigate to Networking, Virtual cloud networks, the OpenShift VCN private subnet, click Route Table Details and enable the communication on the route table.

  2. Enter the on-premises and the workload VCN CIDR details pointing to DRG.

    Add Host to DR Wave

  3. Allow the traffic using the security list.

    Template for vCenter

Task 4: Enable Communication to the Red Hat OpenShift VCN from the Workload VCN

In this task, we will set up routing to the Red Hat OpenShift VCN.

  1. Navigate to the appropriate subnet on the workload VCN.

  2. Click the associated route table.

  3. Add the Red Hat OpenShift VCN load balancer private IP address from Prerequisites section pointing to DRG.

  4. Add the Red Hat OpenShift VCN DNS listener IP pointing to DRG.

    RackWare RMM BYOL

  5. Allow traffic using the security list.

    RackWare RMM BYOL

    We should now be able to access and log in to the OpenShift Container Platform cluster URL from the workload VCN instances.

    RackWare RMM BYOL

Task 5: Enable Communication to the Red Hat OpenShift VCN from the On-Premises Environment

As we already mentioned in the Prerequisites section:

We need to set up DNS forwarder at the on-premises DNS server, pointing to the Red Hat OpenShift VCN listener.

image

RackWare RMM BYOL

We should now be able to access and log in to the Red Hat OpenShift Container Platform cluster URL from the on-premises instance.

RackWare RMM BYOL

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.