Openshift OKD 3.11 AIO (Stand alone installation on Centos7.6
OpenShift is a cloud development Platform as a Service (PaaS) developed
by Red Hat. It is an open source development platform, which enables the
developers to develop and deploy their applications on cloud
infrastructure. It is very helpful in developing cloud-enabled services.
. Openshift as opensource comes with the name OKD from its 3.10 version.(earlier it was known as Openshift Origin) It is a Most demanding technology for hosting micro services in industry. If you wish to explore this technology and want to setup an All in one single node deployment Openshift. Then this article is for you.
I have a Virtual Machine on my fedora 29 laptop and i installed Centos 7.6 on it to setup OKD 3.11. I am using a fresh minimal install centos 7.6 so you can follow all steps just after your fresh minimal install .
Here are steps :
Prepare OS
# yum -y install wget git bash-completion net-tools
Download Openshift release package
# wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-
origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
Extract the Tarball
# tar xvf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
# cd openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/
copy oc and kubectl binary into /usr/local/bin
#cp oc /usr/local/bin/
#cp kubectl /usr/local/bin/
#chmod /usr/local/bin/*
Now setup firewall for docker
firewall-cmd --permanent --new-zone dockerc
firewall-cmd --permanent --zone dockerc --add-source 172.17.0.0/16
firewall-cmd --permanent --zone dockerc --add-port 8443/tcp
firewall-cmd --permanent --zone dockerc --add-port 53/udp
firewall-cmd --permanent --zone dockerc --add-port 8053/udp
firewall-cmd --reload
Install docker
# yum-y install docker
Edit bellow file to overcome insecure registry error
# vi /etc/docker/daemon.json
Put bellow entries
{ "insecure-registries": ["172.30.0.0/16"] }
Then restart Docker
# systemctl restart docker && systemctl enable docker
Now the next step is to make your openshift cluster up.
You can simply run oc cluster up but it will listen on localhost only and hence you would not be able to run openshift web console from remote machine or in my case from fedora host. hence i will give option with my VM ip also.
oc cluster up ----public-hostname=<your VM ip adrdress>
Please keep sure that you have export no_proxy variable
export no_proxy=<your VM ip adrdress>
Done enjoy!
I have a Virtual Machine on my fedora 29 laptop and i installed Centos 7.6 on it to setup OKD 3.11. I am using a fresh minimal install centos 7.6 so you can follow all steps just after your fresh minimal install .
Here are steps :
Prepare OS
# yum -y install wget git bash-completion net-tools
Download Openshift release package
# wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-
origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
Extract the Tarball
# tar xvf openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz
# cd openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/
copy oc and kubectl binary into /usr/local/bin
#cp oc /usr/local/bin/
#cp kubectl /usr/local/bin/
#chmod /usr/local/bin/*
Now setup firewall for docker
firewall-cmd --permanent --new-zone dockerc
firewall-cmd --permanent --zone dockerc --add-source 172.17.0.0/16
firewall-cmd --permanent --zone dockerc --add-port 8443/tcp
firewall-cmd --permanent --zone dockerc --add-port 53/udp
firewall-cmd --permanent --zone dockerc --add-port 8053/udp
firewall-cmd --reload
Install docker
# yum-y install docker
Edit bellow file to overcome insecure registry error
# vi /etc/docker/daemon.json
Put bellow entries
{ "insecure-registries": ["172.30.0.0/16"] }
Then restart Docker
# systemctl restart docker && systemctl enable docker
Now the next step is to make your openshift cluster up.
You can simply run oc cluster up but it will listen on localhost only and hence you would not be able to run openshift web console from remote machine or in my case from fedora host. hence i will give option with my VM ip also.
oc cluster up ----public-hostname=<your VM ip adrdress>
Please keep sure that you have export no_proxy variable
export no_proxy=<your VM ip adrdress>
Done enjoy!
Comments
Post a Comment