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
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
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 -
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
How To Install OpenShift In Ubuntu ?
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.