How to Install Contrail Networking and Red Hat OpenShift 4.4
This topic covers Contrail Networking in Red Hat Openshift environments that are using Contrail Networking Release 21-based releases.
Starting in Release 22.1, Contrail Networking evolved into Cloud-Native Contrail Networking. Cloud-Native Contrail offers significant enhancements to optimize networking performance in Kubernetes-orchestrated environments. Cloud-Native Contrail supports Red Hat Openshift and we strongly recommend using Cloud-Native Contrail for networking in environments using Red Hat Openshift.
For general information about Cloud-Native Contrail, see the Cloud-Native Contrail Networking Techlibrary homepage.
You can install Contrail Networking with Red Hat Openshift 4.4 in multiple environments.
This document shows one method of installing Red Hat Openshift 4.4 with Contrail Networking in two separate contexts—on a VM running in a KVM module and within Amazon Web Services (AWS). There are many implementation and configuration options available for installing and configuring Red Hat OpenShift 4.4 and the scope of all options is beyond this document. For additional information on Red Hat Openshift 4.4 implementation options, see the OpenShift Container Platform 4.4 Documentation from Red Hat.
This document includes the following sections:
How to Install Contrail Networking and Red Hat OpenShift 4.4 using a VM Running in a KVM Module
This section illustrates how to install Contrail Networking with Red Hat OpenShift 4.4 orchestration, where Contrail Networking and Red Hat Openshift are running on virtual machines (VMs) in a Kernel-based Virtual Machine (KVM) module. This procedure can also be performed to configure an environment where Contrail Networking and Red Hat OpenShift 4.4 are running on a bare metal server.
When to Use This Procedure
This procedure is used to install Contrail Networking and Red Hat OpenShift 4.4 orchestration on a virtual machine (VM) running in a Kernel-based Virtual Machine (KVM) module. Support for Contrail Networking installations onto VMs in Red Hat OpenShift 4.4 environments is introduced in Contrail Networking Release 2008. See Contrail Networking Supported Platforms.
You can also use this procedure to install Contrail Networking and Red Hat OpenShift 4.4 orchestration on a bare metal server.
This procedure should work with all versions of Openshift 4.4.
Prerequisites
This document makes the following assumptions about your environment:
the KVM environment is operational.
the server meets the platform requirements for the installation. See Contrail Networking Supported Platforms.
Minimum server requirements:
Primary nodes: 8 CPU, 40GB RAM, 250GB SSD storage
Backup nodes: 4 CPU, 16GB RAM, 120GB SSD storage
Helper node: 4 CPU, 8GB RAM, 30GB SSD storage
In single node deployments, do not use spinning disk arrays with low Input/Output Operations Per Second (IOPS) when using Contrail Networking with Red Hat Openshift. Higher IOPS disk arrays are required because the control plane always operates as a high availability setup in single node deployments.
IOPS requirements vary by environment due to multiple factors beyond Contrail Networking and Red Hat Openshift. We, therefore, provide this guideline but do not provide direct guidance around IOPS requirements.
Install Contrail Networking and Red Hat Openshift 4.4
Perform these steps to install Contrail Networking and Red Hat OpenShift 4.4 using a VM running in a KVM module:
- Create a Virtual Network or a Bridge Network for the Installation
- Create a Helper Node with a Virtual Machine Running CentOS 7 or 8
- Prepare the Helper Node
- Create the Ignition Configurations
- Launch the Virtual Machines
- Monitor the Installation Process and Delete the Bootstrap Virtual Machine
- Finish the Installation
Create a Virtual Network or a Bridge Network for the Installation
To create a virtual network or a bridge network for the installation:
Create a Helper Node with a Virtual Machine Running CentOS 7 or 8
This procedure requires a helper node with a virtual machine that is running either CentOS 7 or 8.
To create this helper node:
Prepare the Helper Node
To prepare the helper node after the helper node installation:
Create the Ignition Configurations
To create Ignition configurations:
Launch the Virtual Machines
To launch the virtual machines:
Monitor the Installation Process and Delete the Bootstrap Virtual Machine
To monitor the installation process:
Finish the Installation
To finish the installation:
How to Install Contrail Networking and Red Hat OpenShift 4.4 on Amazon Web Services
Follow these procedures to install Contrail Networking and Red Hat Openshift 4.4 on Amazon Web Services (AWS):
- When to Use This Procedure
- Prerequisites
- Configure DNS
- Configure AWS Credentials
- Download the OpenShift Installer and the Command Line Tools
- Deploy the Cluster
When to Use This Procedure
This procedure is used to install Contrail Networking and Red Hat OpenShift 4.4 orchestration in AWS. Support for Contrail Networking and Red Hat OpenShift 4.4 environments is introduced in Contrail Networking Release 2008. See Contrail Networking Supported Platforms.
Prerequisites
This document makes the following assumptions about your environment:
the server meets the platform requirements for the installation. See Contrail Networking Supported Platforms.
Configure DNS
A DNS zone must be created and available in Route 53 for your AWS account before starting this installation. You must also register a domain for your Contrail cluster in AWS Route 53. All entries created in AWS Route 53 are expected to be resolvable from the nodes in the Contrail cluster.
For information on configuring DNS zones in AWS Route 53, see the Amazon Route 53 Developer Guide from AWS.
Configure AWS Credentials
The installer used in this procedure creates multiple resources in AWS that are needed to run your cluster. These resources include Elastic Compute Cloud (EC2) instances, Virtual Private Clouds (VPCs), security groups, IAM roles, and other necessary network building blocks.
AWS credentials are needed to access these resources and should be configured before starting this installation.
To configure AWS credentials, see the Configuration and credential file settings section of the AWS Command Line Interface User Guide from AWS.
Download the OpenShift Installer and the Command Line Tools
To download the installer and the command line tools:
Deploy the Cluster
To deploy the cluster:
How to Add a User After Completing the Installation
The process for adding an Openshift user is identical in KVM or on AWS.
Redhat OpenShift 4.4 supports a single kubeadmin user by default. This kubeadmin user is used to deploy the initial cluster configuration.
You can use this procedure to create a Custom Resource (CR) to define a HTTPasswd identity provider.
How to Install Earlier Releases of Contrail Networking and Red Hat OpenShift
If you have a need to install Contrail Networking with earlier versions of Red Hat Openshift, Contrail Networking is also supported with Red Hat Openshift 3.11.
For information on installing Contrail Networking with Red Hat Openshift 3.11, see the following documentation: