Introduction
What is RedHat Openshift Service?
Red Hat OpenShift is the leading enterprise Kubernetes platform, built for an open hybrid cloud strategy. Red Hat OpenShift’s full-stack automated operations, consistent experience—across all environments—and self-service provisioning for developers lets teams work together to more efficiently move ideas from development to production.
Red Hat OpenShift is available as a fully managed cloud service on leading public clouds, or as a self-managed software offering for organizations requiring more customization.
Red Hat OpenShift ships with Red Hat® Enterprise Linux® CoreOS for the Kubernetes master, and supports Red Hat Enterprise Linux for worker nodes. Red Hat OpenShift also supports standard Docker and CRI-O runtimes for containers managed by Kubernetes.
RedHat Openshift Service on AWS
Red Hat OpenShift Service on AWS (ROSA) is a fully-managed and jointly supported Red Hat OpenShift offering that combines the power of Red Hat OpenShift, the industry’s most comprehensive enterprise Kubernetes platform, and the AWS public cloud. Red Hat OpenShift Service on AWS delivers a fully-managed Red Hat OpenShift Container Platform, optimized for performance, scalability, and security. Red Hat OpenShift Service on AWS is hosted on Amazon Web Services public cloud and jointly managed by Red Hat and AWS. So now users can build, deploy, and manage Kubernetes applications with Red Hat OpenShift running natively on AWS.
Before using the service on AWS, one must have registered an account with RedHat. Log in or register to access product trials and purchase subscriptions. Your account, in combination with an active subscription, provides access to technical support knowledge and the ability to manage users, subscriptions, and certifications.
Provisioning Red Hat OpenShift Service on AWS
This is the first step required to enable the RedHat OpenShift Service on AWS Console directly. Red Hat OpenShift Service on AWS takes a step away from having to deal with infrastructure as code templates and automation scripts to deploy OpenShift. Red Hat OpenShift Service for AWS has a simple API and CLI codes. The CLI can be downloaded directly from the AWS Management Console and allows customers to pass parameters regarding their cluster requirements. The provisioning of the OpenShift cluster takes around 40 minutes.
When you open the RedHat Openshift Service on the AWS console for the first time, users can see the option “Enable Red Hat Openshift” as shown in the below screenshot.
Click Enable Openshift to proceed further.
You will get a dialog box similar to the attached screenshot below. Click Enable
After a few minutes, your Redhat OpenShift Service will be enabled, and you will get the Service enabled message as shown below. You could also verify Red Hat OpenShift Service on AWS license on the AWS license manager under the Granted licenses. The below screenshot shows this ROSA license with license ID and status.
In the next step, users have to download the CLI tools on the local computers to work with Redhat OpenShift containers.
Before downloading the CLI tools, your browser will be redirected to the RedHat Account login page, where you will fill up your RedHat account credentials ( or user need to register an account to access product trials and purchase subscriptions.
After successful sign-in, you will be redirected to the CLI tools download page as shown below screenshot. Users have to choose the OS type and architecture type ( Windows x86_64 in our case ) in the download category Red Hat OpenShift Service on AWS command-line interface (rosa) marked in Redbox as shown below.
A zip file in the name of rosa-windows.zip will be downloaded, and you can save it under a directory on your computer. Extract the zip file in a folder, a new rosa.exe will be created. Run the rosa.exe file in the command prompt, and this will install the CLI tool on your computer.
Deployment Prerequisites for ROSA
To deploy Red Hat OpenShift Service on AWS (ROSA) into your existing Amazon Web Services (AWS) account, Red Hat requires several prerequisites to be met. There are several requirements such as Customer requirements, Access requirements, Security requirements, and so on. Below openshift documentation details these prerequisites and CLI installation instructions
https://docs.openshift.com/rosa/rosa_getting_started/rosa-aws-prereqs.html
https://docs.openshift.com/rosa/rosa_getting_started/rosa-installing-rosa.html#rosa-installing-rosa
Once the CLI tool is installed, open a command prompt and run the following command first
“rosa init” is shown in the following picture.
The command will ask you to log in to your RedHat account, for that you may require an offline access token, which you can get from the mentioned URL https://console.redhat.com/openshift/token/rosa
And this URL opens the Redhat Hybrid cloud console as shown in the below screenshot, which will allow you to load the Openshift Cluster Manager API token. Click the Load token to generate an offline API token to authenticate against your Red Hat OpenShift Service on AWS account. Users need to copy the content of the API token to use in the CLI tool as shown below.
Using the API token you can log in using the rosa CLI command “login” as shown below.
Note: In this blog, we are not covering how to create a ROSA cluster in AWS with the help of the ROSA CLI tool. We are providing an overview of the service and the preparation requirements for a successful setup. Users are required to set up Redhat’s subscription and AWS prerequisites on their AWS console. You may be required to contact AWS support to increase your quota for required AWS services during the cluster creation process. Users must read the below documentation URLs to understand the concept of setting up a ROSA cluster on AWS.
https://docs.openshift.com/rosa/rosa_cli/rosa-get-started-cli.html
https://docs.openshift.com/rosa/rosa_getting_started/rosa-quickstart.html
Conclusion :
Red Hat OpenShift Service on AWS delivers the production-ready Kubernetes that many enterprises already use on-premises today, simplifying the ability to shift workloads to the AWS public cloud as business needs dictate. It has a flexible consumption-based pricing feature, and this will scale as per your business needs and pay as you go with flexible pricing with an on-demand hourly or annual billing model. DevOps administrators can quickly build and deploy applications by launching OpenShift directly through the AWS console & accelerate the application development process by leveraging familiar APIs and existing Red Hat OpenShift tools.
Follow our Twitter and Facebook feeds for new releases, updates, insightful posts and more.