Open In App

How To Install OpenShift In Ubuntu ?

Last Updated : 20 Feb, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Open Shift is a containerization platform created by Red-Hat. An open-source container orchestration stage permits them to build, deploy, and manage applications in a containerized environment. OpenShift is based on Kubernetes, which is a popular compartment container system. Red Hat OpenShift is a cloud-based Kubernetes platform that assists developers with building applications. It offers automated installation, updates, and the lifecycle of the board all through the container stack—the working system, Kubernetes and cluster services, and applications—on any cloud. OpenShift enables the ability to build, deploy, and scale applications faster, both on-premises and in the cloud. It likewise safeguards your improvement infrastructure at scale with big enterprise grade security.

Self-hosted Kubernetes establishments or administrations—like Amazon EKS, Sky Blue Kubernetes Administration, or Google Kubernetes Motor—make it workable for undertakings to choose and carry out best-fit capabilities. In any case, OpenShift gives exhaustive multi-tenure highlights, high-level security and monitoring, integrated capacity, and a CI/CD pipeline to the board from the outset. For organizations looking to change and modernize, OpenShift permits you to scale so you can develop your business through cloud-local events. OpenShift and Kubernetes can improve access to hidden foundations and assist with dealing with the application lifecycle and development work processes.

Features of OpenShift

  • Run cloud-native microservices at scale: Microservices architecture combines inexactly coupled capabilities to make high-performing applications. The small size of these administrations makes them profoundly testable and simple to keep up with, while at the same time expanding adaptability in how applications are organized and conveyed. OpenShift makes it conceivable to make and send cloud-local microservices at scale, either to improve existing application execution or to fabricate completely new applications starting from the earliest stage.
  • Container Security: It has features for securing containerized applications, such as role-based access control (RBAC) and container image scaling.
  • Scale and manage infrastructure: The adaptable, cloud-based nature of OpenShift gives organizations unlimited authority over the scale and the executives of their application framework. Businesses can instead concentrate on application development, support, and evolution by removing concerns regarding lifecycle management, storage, and security.
  • Open-source and cloud-based technologies: OpenShift likewise contains a set of developer tools as order line utilities and IDE support that permit designers to compose and send to creation with expanded speed. Moreover, OpenShift incorporates a bunch of pre-made, simple-to-utilize formats that offer a basic snap interface and can be effectively modified to address your issues. It additionally works with popular continuous integration tools like Jenkins.
  • Support for Various Languages and Runtimes: OpenShift supports different types of programming languages and runtimes, allowing developers to use the tools and systems they are familiar with.

Why install OpenShift in Ubuntu?

They have a several advantages installing OpenShift in Ubuntu, They are:

  1. Compatibility: Ubuntu is a generally utilized Linux circulation with a huge client base. OpenShift can be used by a wide range of people because it is compatible with a well-known operating system when installed on Ubuntu.
  2. Community Support: Forums, discussions, and troubleshooting are all aided by Ubuntu’s vibrant and active community. Introducing OpenShift on Ubuntu can profit from this local area support, making it simpler to track down answers for normal issues.
  3. Easy to use: Ubuntu is known for its easy to use interface and clear bundle the executives framework. Introducing OpenShift on Ubuntu can be more direct for clients acquainted with Ubuntu, lessening the expectation to absorb information.
  4. Familiar Environment : Designers and overseers who are as of now acclimated with working with Ubuntu might find it more helpful to introduce and oversee OpenShift on a stage they are know all about.
  5. Resource Accessibility: Ubuntu is many times utilized in different conditions, including cloud suppliers and on-premises servers. Users can make use of infrastructure and resources that are already in place by installing OpenShift on Ubuntu
  6. Flexibility: Ubuntu upholds a great many hardware architectures and stages. Introducing OpenShift on Ubuntu gives adaptability in picking the equipment and arrangement climate that best suits the client’s necessities.

Prerequisites

  • A server running Ubuntu 20.04 on AWS
  • A root password is configured on your server.

Installing OpenShift on Ubuntu

Step 1: Login to AWS Console with your credentials after login.

Step 2: Launch an EC2 instance with ubuntu machine as shown in below figure.

Launching Ubuntu Virtual Machine (AMI)

Step 3: After launching an EC2 instance by using SSH connect to your into your Ubuntu host VM by using git-bash or putty orelse any another terminals.

SSH connecting to terminal

SSH connecting to terminal

Step 4: Update system by using following commands

sudo apt update
sudo apt upgrade

Step 5: In order to run all OKD services in docker containers, you must first install the Docker CE on your system. The most recent version of Docker CE is available by default in the default repository for Ubuntu 20.04. You can introduce it simply by running the following command:

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Install Docker

Step 6: Once the Docker is installed, start the Docker service and enable it to start at boot with the following command:

systemctl start docker
systemctl enable docker

Step 7: You can also verify the status of the Docker service with the following command, this command show that docker is running or not

systemctl status docker

Status of the Docker

Here our docker is running, Now we can proceed to another step.

Download OpenShift Origin

Step 1: The latest version of OpenShift Origin is v3.11.0. You can download it from the Git Hub repository by using the wget command and paste github repository link address.

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

Step 2: Once completion of download now untar the file or extract the file by using following command

tar -xvzf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz

untar file

Step 3: Now change the directory to the extracted directory by using cd command

cd openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit

Step 4: Copy ‘oc’ command to ‘/usr/local/bin/’ directory on the system by using following command

cp oc kubectl /usr/local/bin/

Step 5: Now check the oc installation by using following command

oc version

The following output will be shown in terminal

OC version

Step 6: Next, you will need to create a new daemon.json file and allow the use of the Insecure Docker registry.

nano /etc/docker/daemon.json

When we execute this terminal open a blank terminal in that write a script

{
"insecure-registries" : [ "172.30.0.0/16" ]
}

Step 7: Otherwise directly execute this command in terminal directly before going to do this execution switch to root account by using following command

sudo su -

Switching to root account

Step 8: Now restart the docker to implement the changes by using following command

systemctl restart docker

Step 9: Now, start the OpenShift Origin cluster by specifying your system’s Public IP:

Here i am not exploring my public ip

oc cluster up --public-hostname=your-server-ip

Once execution complete then output shown like this

OpenShift server started.
The server is accessible via web console at:
https://ec2-.54.162.17.204-us-west-1.compute.amazonaws.com:8443
You are logged in as:
User: developer
Password: <any value>
To login as administrator:
oc login -u system:admin

This is the final Output

Managing OpenShift in ubuntu

Managing OpenShift includes associating with the OpenShift cluster, deploying applications, scaling resources, and supervising the general soundness of your containerized environment.

Managing OpenShift on Ubuntu includes a combination of CLI commands and interactions with the web console. Dive more deeply into the OpenShift documentation for detailed instructions on specific tasks and best practices. To maintain the security and up-to-dateness of your OpenShift environment, check for updates and security advisories frequently. Continuously allude to the authority OpenShift documentation for the most reliable and extensive data.

Conclusion

In conclusion, managing OpenShift on Ubuntu includes using both the command line interface (CLI) and the web control center to perform different errands, for example, sending applications, scaling assets, checking logs, and ensuring security through client the board and role based admittance control (RBAC). Consistently alluding to the authority OpenShift documentation is significant to remaining informed about the most recent elements, best practices, and security refreshes. In the OpenShift environment, automation and scripting can also improve efficiency when managing repetitive tasks. At last, a very much oversaw OpenShift sending on Ubuntu gives a strong compartment organization stage for creating, deploying, and scaling containerized applications.

How to Install OpenShift in ubuntu – FAQs:

What is OpenShift?

OpenShift is a container orchestration platform created by Red Hat that allows organizations to deploy, make due, and scale containerized applications. It is based on top of Kubernetes and gives extra highlights to developer productivity and functional .

What is the difference among OpenShift and Kubernetes?

OpenShift is based on Kubernetes and incorporates additional tools and features. While Kubernetes centers around holder organization, OpenShift furnishes a more complete stage with highlights like coordinated developer tools, source-to-image builds, and an upgraded web console.

How can OpenShift be installed on Ubuntu?

The installation cycle includes setting up a bunch, regularly utilizing devices like Minishift or CodeReady Holders. Allude to the authority OpenShift documentation for point by point, variant specific installation instruction.

Could OpenShift at any point run on any cloud stage?

Yes, OpenShift is intended to be cloud-freethinker and can run on different cloud stages, including AWS, Purplish blue, Google Cloud, and on-premises server farms.

What are the critical highlights of OpenShift?

Key features incorporate holder arrangement with Kubernetes, coordinated developer tools, source-to-picture fabricates, role based access control (RBAC), support for different programming languages, and scalable organizations.



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads