Friday, June 12, 2020

How To Install OpenShift Origin PaaS Server with Docker on Ubuntu 20.04 LTS

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

OpenShift is a free, open-source, and cloud development Platform as a Service (PaaS) developed by Red Hat that allows the developers to develop and deploy their applications on a cloud infrastructure. It is a community distribution of Kubernetes and enables faster development and release cycles for applications. It comes with a simple and easy to use web interface that allows you to monitor the container resources, container health, the nodes the containers reside on, IP addresses of the nodes, etc.

Offcial Website -https://www.okd.io/

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Testing Environment:

Ubuntu 20.04 LTS                     Hostname - www.yourdomain.com  - ip Address - 192.168.1.20

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

apt update ; apt install -y build-essential net-tools curl git software-properties-common neofetch apt-transport-https ca-certificates curl gnupg-agent docker.io docker-compose

systemctl enable --now docker ; usermod -aG docker $USER ; newgrp docker

docker --version ; docker-compose version


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

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

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

cp oc kubectl /usr/local/bin/

oc version

nano /etc/docker/daemon.json

 {

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

 }

systemctl restart docker ; systemctl status docker

oc cluster up 192.168.1.20

oc login -u system:admin

oc project default

oc status

oc login

oc new-project dev --display-name="Project - Dev" --description="My Project"

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

1 comment: