OpenShift | Open Source Openshift Container Platform

OpenShift DevOps Tool

OpenShift is containerization software developed by Red Hat.

OpenShift is an open-source container platform and Platform-as-a-Service (PaaS). It is a cloud-based container orchestration system for Kubernetes distribution.

Overview

Red Hat OpenShift is an open source and cloud development Platform as a Service (PaaS). It allows the developers to develop and deploy their applications easily on a cloud infrastructure. It is a community distribution of Kubernetes that enables faster development and release cycles for applications. OpenShift has very simple and easy to use web interface that allows you to monitor the container resources, container clusters, nodes, Ip addresses of the nodes etc.

Open source OpenShift container platform as a service built around Linux containers orchestrated and managed by Kubernetes. OpenShift Origin and OKD is an open source containerization implementation of Red Hat OpenShift. This Kubernetes distribution is optimized for developing, deploying, and managing container based applications. Red hat OpenShift container platform gives you a self service platform to develop, modify, manage and deploy containerized applications.

System Requirements

The installation instructions make the following assumptions for the OpenShift container platform on your Linux environment:

  • A server running ubuntu
  • Docker CE on ubuntu
  • A sudo configured user

Features

OpenShift supports a wide range of features to manage containers. Some of the key features of open source container platform OpenShift are listed below:

  • Command line tools
  • Kubernetes based auto scaling
  • Implement end-to-end CI/CD pipelines
  • Monitor app workload and collect logs
  • Role-based access control

Installation Instructions

Install OpenShift on Linux

Below installation instructions assume that all the depency packages of the OpenShift are installed and up to date on your Ubuntu system. For Ubuntu setup, please follow the below installions steps to install OpenShift on ubuntu. A single node installation will run OKD services in docker containers. Docker Engine runtime is required on for the installation system. So, first import Docker GPG key:

    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Now, add Docker APT repository to your Ubuntu system:

    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

The Docker repository is now added, run the commands below to update, install and verify Docker CE on Ubuntu:

    sudo apt update && sudo apt -y install docker-ce
    docker version

Next, add your User account to docker group.

    sudo usermod -aG docker $USER

At this point, Docker is successfully installed. Download the OpenShift Origin client utility on Ubuntu from Git Hub repository:

    wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz

Uncompress downloaded tar file, move to created folder, then copy kubectl and oc binaries to the /usr/local/bin directory:

    tar xvf openshift-origin-client-tools*.tar.gz
    cd openshift-origin-client*/
    sudo mv  oc kubectl  /usr/local/bin/

Verify installation of Red Hat container platform OpenShift client utility by command:

    oc version

Allow use of Insecure Docker registry and restart Docker service after adding the file in terminal:

    cat << EOF | sudo tee /etc/docker/daemon.json 
     {
         "insecure-registries" : [ "172.30.0.0/16" ]
     }
    EOF

    sudo systemctl restart docker

Next, start OKD server on local interface – 127.0.0.1:8443 by running the following command:

    oc cluster up

Openshift Origin command option help:

    oc cluster up --help

To login as administrator account, use command:

    oc login -u system:admin

Change to the default project:

    oc project default

Deploy OKD cluster integrated container image registry using command:

    oc adm registry

You can check current project status:

    oc status

Now you can access OpenShift admin console in a browser with credentials Username: developer, Password: developer. Browse to 127.0.0.1:8443 to access OpenShift web console. You can change host IP in OCP configuration file. A Project can be created from the web console by login into Openshift cluster.

Congratulations! You have successfully setup OpenShift Origin on Ubuntu. Enjoy!

FAQs

What is OpenShift used for?

Red Hat OpenShift is a cloud development Platform as a Service (PaaS) and open source container platform based on industry standards, Docker and Kubernetes.

Is OpenShift free?

Yes, OpenShift is free to use, customize and download containerization platform for container environments.

Is OpenShift open source?

Yes, OpenShift is open source container orchestration and management software. OpenShift source code repository is available at Github.

In what language is OpenShift Origin written?

OpenShift is written in Go programming language.

Is OpenShift based on Kubernetes?

OpenShift is a cloud-based Kubernetes container management platform. It is considered both containerization software and a platform-as-a-service (PaaS). It’s also partly built on Docker, another most popular container platform.

What is okd vs openshift?

There are two versions, Openshift Container Platform and OKD. OpenShift Container Platform has a paid support. OKD is free to use and includes most of the features of its commercial product but you cannot buy a support. OKD is community supported variant of OpenShift and it also known as Openshift Origin.

What is Red Hat OpenShift vs Kubernetes?

Kubernetes and OpenShift are both popular container management platforms with its unique features and advantages. OpenShift is the container platform that works with Kubernetes to help applications run more efficiently while Kubernetes helps to automate application deployment, scaling, and management.

Explore

In this article we discussed about Red Hat openshift open source tool. To learn about other top open source DevOps tools, please visit following page:

 English