Okd Installation Centos
Okd Installation Centos
Okd Installation Centos
This repository is used to create OKD 3.11 Cluster with 9 simple steps on Bare VM's
View on GitHub
okd-installation-centos
About…
This repository is used to create *OKD 3.11 Cluster with 9 simple steps on Bare VM’s*
Table of Contents
What are the pre-requisites ?
What are the VM’s provisioned ?
How to deploy okd cluster ?
How to access okd Console ?
What are the addons provided ?
Below is the *example con guration that we are going to refer through out this repository.*
Step 1
Update the system and host names for all nodes
100.10.10.100 (okd-master-node)
100.10.10.101 (okd-worker-node-1)
100.10.10.102 (okd-worker-node-2)
100.10.10.103 (okd-worker-node-3)
100.10.10.104 (okd-infra-node-1)
Unix Command!!!
$ yum update -y
Step 2
Enable SELINUX=enforcing on all master/worker/infra nodes
100.10.10.100 (okd-master-node)
100.10.10.101 (okd-worker-node-1)
100.10.10.102 (okd-worker-node-2)
100.10.10.103 (okd-worker-node-3)
100.10.10.104 (okd-infra-node-1)
Unix Command!!!
$ nano /etc/selinux/config
We can verify the status by running the below command. The correct status will not re ect once
we changed until we reboot the machines
$ sestatus
Step 3
Reboot all master/worker/infra nodes
100.10.10.100 (okd-master-node)
100.10.10.101 (okd-worker-node-1)
100.10.10.102 (okd-worker-node-2)
100.10.10.103 (okd-worker-node-3)
100.10.10.104 (okd-infra-node-1)
Unix Command!!!
$ reboot
Step 4
Checkout the code (git clone https://github.com/SubhakarKotta/okd-installation-centos.git)
Con gure okd-installation-centos/provisioning/settings.sh le
Step 5
Copy “okd-installation-centos” folder to all master/worker nodes
100.10.10.100 (okd-master-node)
100.10.10.101 (okd-worker-node-1)
100.10.10.102 (okd-worker-node-2)
100.10.10.103 (okd-worker-node-3)
100.10.10.104 (okd-infra-node-1)
Example copy to root folder and execution permissions can be applied by executing the below
command.
Unix Command!!!
$ chmod +x -R okd-installation-centos
Step 6
Execute the below script on all master/worker/infra nodes
100.10.10.100 (okd-master-node)
100.10.10.101 (okd-worker-node-1)
100.10.10.102 (okd-worker-node-2)
100.10.10.103 (okd-worker-node-3)
100.10.10.104 (okd-infra-node-1)
Unix Command!!!
$ okd-installation-centos/provisioning/install_prerequisites.sh
Step 7
Enable SSH to communicate all the other “worker/infra nodes” from “master” with out
“password”. All the below commands needs to be executed on “master” node only
100.10.10.101 (okd-master-node)
Unix Command!!!
$ ssh-keygen -t rsa
okd-master-node
okd-worker-node-1
okd-worker-node-2
okd-worker-node-3
okd-infra-node-4
Step 8
Execute the below script only on master node
100.10.10.101 (okd-master-node)
Unix Command!!!
$ okd-installation-centos/provisioning/install_master.sh
Step 9
Verify okd installation is success by executing below two commands to see all the nodes and
pods.
Unix Command!!!
$ oc get projects
https://console.okd.nip.io:8443