Red Hat OpenShift is a leading enterprise Kubernetes platform, purpose-built for innovation. Beginning with release version 4.6, OpenShift now comes with a number of enhancements focused on enabling our government customers to accelerate and expand their adoption of containers and DevSecOps, such as a comprehensive approach to FIPS, expanded support for government clouds, an automated approach to compliance via the Compliance Operator, and others.
Red Hat OpenShift is a certified Kubernetes distribution, which provides consistency via the Kubernetes API, timely updates, and confirmability to ensure interoperability. Red Hat is a leading contributor to Kubernetes and other projects in this ecosystem including Linux, Prometheus, Jaeger, CNI, Envoy, Istio, etc. At Red Hat we use a 100% open source development model to deliver enterprise products. No fork, no rebase, no proprietary extensions.
Red Hat emphasizes the enterprise supportability of open source software, which is particularly important with the DoD mission. Not only do they build an ecosystem of supported partners and vendors. We recognize that keeping up with the frequent upstream releases can be challenging and we’re investing in automated capabilities like the operator framework and over-the-air updates to make it easier to keep up to date with the latest innovations coming out of the communities and to deploy containers at scale.
For more information please refer to this blog.
There are two native ways of installing OpenShift, Installer Provisioned Infrastructure (IPI) and User Provisioned Infrastructure (UPI). Both produce highly available, fully capable OpenShift clusters, the only difference is who is responsible for provisioning the required infrastructure.
Additionally, you can create your own custom automation around a UPI install to target a specific use case or environment such as Cloud One. An example of this is Sparta, which is a tool incepted by Red Hat Consulting to help facilitate installs in Cloud One or similarly restricted AWS environments.
In this section, we will be diving into what each approach entails then discussing the merits of each approach relative to a DoD use case.
Installer Provisioned Infrastructure (IPI)
For clusters with installer-provisioned infrastructure (IPI), you delegate the infrastructure bootstrapping and provisioning to the installation program instead of doing it yourself. The installation program creates all of the networking, machines, and operating systems that are required to support the cluster. There are some aspects that are configurable such as the number of machines that the control plane uses, the type of virtual machine that the cluster deploys, or the CIDR range for the Kubernetes service network. However, generally speaking, for highly customized installations a User Provisioned Infrastructure (UPI) approach will be required.
User Provisioned Infrastructure (UPI)
If you provision and manage the infrastructure for your cluster yourself, you must provide all of the cluster infrastructure and resources, including:
Red Hat provides cloud-provider templates to help you get started in building your infrastructure. The customer has the option to leverage these Red Hat provided templates or build custom automation to build out infrastructure. Linked here are the guides for AWS and Azure, but more are available for other providers:
What is Sparta?
Sparta is a customized UPI install with additional tools to help facilitate a disconnected build to the requirements of Cloud One’s IL2 AWS GovCloud environment (C1DL). Some of the unique challenges in that environment include:
An architecture overview for Sparta is available here and the github page.
Sparta is under continuous development to continue to better target the use cases of our DoD customers.
Considerations When Installing OpenShift Disconnected
OpenShift installed via any of these methods can be installed disconnected. It does not require connectivity to the internet to function with the exception of cloud provider APIs. Even the cloud provider APIs are not strictly required but you will lose the ability to leverage the cloud provider plugin which provides native integration with the underlying cloud services. This plugin allows for some advanced machine management and scaling capabilities, including:
The primary consideration when installing disconnected is taking the install content (container images, operators, iso/ova/ovf etc.) to the high side where it needs to be hosted in a content repository. If the environment already has an existing container registry, the container images can be loaded into it to support the installation. Additionally, a web server is needed to host the operating system image and the configuration files for the RHCOS nodes. This content needs to be accessible from the environment where the nodes will be deployed and from the host where the installation is performed from.
Comparing IPI, UPI, and Sparta for the DoD Requirements
The table below will compare features of IPI vs UPI to help you decide what is best for your organization.
IPI | UPI | Sparta | |
Can be installed in disconnected environment | Yes | Yes | Yes |
Installs highly available cluster | Yes | Yes | Yes |
Can be installed in AWS, Azure, GCP, VMWare, RHV, OpenStack | Yes | Yes | No, AWS only, on roadmap to expand |
Can be installed bare metal | Yes, but only on certain hardware | Yes | No |
Can be installed in existing VPCs (or Azure VNETs) | Yes (see blog) | Yes | Yes |
Requires full administrative privileges | By default yes, but can also pre-create less privileged IAM roles (see docs for AWS and Azure) | No | No |
Requires Route 53 (or Azure DNS) | Yes | No | Yes, but on the roadmap to allow other options |
Can be installed in C2S | No | Yes | No, but on roadmap |
Can be installed with existing ELB | No | Yes | Yes |
In this section, we will walk you through installations using each of the methods described above.
OpenShift IPI on MAG with Manual IAM
OpenShift IPI on AWS GovCloud with Manual IAM