Industry Use Cases of OpenShift from Experts

Sainadh
4 min readAug 19, 2021
Photo by Cameron Venti on Unsplash

We can create a simple Hello World program with Dockerfile and export our code to GitHub.

We configure our GitHub repository to the OpenShift S2I.

With a single click on build, our image is built and deployed.

During the deployment, S2I runs all the test cases of the application and forwards if everything is passed. In this case, we don’t have any test cases.

From this blog, you will know about open shift, container technology, problems with docker, podman, views of the industry experts working in Redhat and OpenShift.

About the Instructors

photo from LinuxWorld

Amel Mathai: - World’s First Ansible certified professional and working in Redhat from more than 12 years now. Amel has expertise in OpenShift.

Daleep’s consulting experience is primarily on Redhat’s PaaS and storage services. And Daleep has an impeccable record of being a Redhat Certified Engineer to Redhat’s clients across Asia Pacific. He has great technical knowledge about containers, automation with CI/CD pipelines. Interested in building open-source technologies.

Abid Mattoo is a partner sales manager at Redhat. Explained about the courses and how to become a Redhat Certified Specialist in OpenStack and Containers.

Stats

“By 2022, more than 75% of global organizations will be running containerized applications in production.” — Gartner Report

The use of containers in production has increased dramatically in recent years” — Global Survey

Evolution of Deployment Environments

Before containers, everyone used virtualization techniques, but it takes a lot of time and resources to get an application deployed into production. Everything should be done twice.

By the time virtualization is maturing and professionals thinking it is the end and we must follow the same process, then came the Dockers which took IT companies like a storm, and everyone interested and adopted to using docker,We can create a simple Hello World program with Dockerfile and export our code to GitHub.

We configure our GitHub repository to the OpenShift S2I.

With a single click on build, our image is built and deployed.

During the deployment, S2I runs all the test cases of the application and forwards if everything is passed. In this case, we don’t have any test cases.

which is a container technology.

Even though Docker is solving a lot of issues like saving a lot of time and resources, it has some critical issues.

  • Authentication
  • Scaling
  • Networking
  • Image Registry
  • Metrics and logging

Then came Kubernetes which addresses and solves problems with containers.

Kubernetes is a great tool for Devops and administrators, an open-source container orchestration system for automating computer application deployment, scaling, and management. Designed by Google in initial stages.

Benefits of using Kubernetes

  • Scalability
  • Workload Probability
  • Container Orchestration

As it is opensource Redhat has seen an opportunity to use the tool and add their enterprise-level expertise to Kubernetes and build a platform called open shift.

photo from Openshift

Red Hat OpenShift is an open-source container application platform based on the Kubernetes container orchestrator for enterprise application development and deployment.

Major Features of OpenShift

  • Pod autoscaling (In Kubernetes world we call container as pods)
  • High availability
  • We can choose our own cloud infrastructure.
  • Integration of CI/CD pipelines.
  • Rich command-line toolset (using kubectl as command)
  • Serverless
  • Web Interface for easy use and monitoring.
  • Over the air updates
  • More secure

Source-to-Image (S2I) is a framework that makes it easy to write images that take application source code as an input and produce a new image that runs the assembled application as output. The main advantage of using S2I for building reproducible Docker images is the ease of use for developers.

photo from Openshift

In the real world, we can use S2I a lot by configuring a git repository to the OpenShift platform, whenever we update our code in GitHub, S2I takes the code and build a new image out of it and deploys the application.

Features of S2I are speed, patch ability, user efficiency, and ecosystem.

Podman is a daemonless, open-source, Linux native tool designed to make it easy to find, run, build, share and deploy applications. it is very much like docker. We can also use docker commands with podman without any changes.

Industries uses Podman instead of docker most of the times.

As of now it is only available in Linux.

Simple Demo

Launch your openshift cluster in cloud or use minishift virtual machine for openshift.

Upload a simple website to your github in the laguage of your choice.

Openshift provides it’s own command line tool kit OC.

# create a namespace
$ oc new-project web-apps
# creating the webapplication from github repo
$ oc new-app --as-deployment-config --name myapp <github-url>

With the above command openshift triggers the S2I build, which will take your github code, then creates a container and deploys the container.

# see all the running objects
$ oc get all --all

Then you can use the router object to expose the services.

# expose the services
$ oc expose svc/myapp
# Get the route address
$ oc get route

Conclusion

You have learned the evolution of deployment environments, differences of virtualization, containers, kubernetes and openshift. Usage of openshift in the industry with a small demo.

--

--

Sainadh

Devops and automation export, explorer, opensource enthusiast, follow for more content related to devops and easy way to do the things.