Skip to content

This repository is used to create OKD 3.11 Cluster with 9 simple steps on Bare VM's

Notifications You must be signed in to change notification settings

widyaunix/okd-installation-centos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

okd-installation-centos

Welcome to OKD

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 prerequisites ?

What are the VM's provisioned ?

Note: We are not going to create any VM's during this process. User is expected to have VM's before proceeding with this repository

Below is the example configuration that we are going to refer through out this repository.

Name IP OS RAM CPU
master 192.168.122.21 CentOS7 8GB 2
node1 192.168.122.22 CentOS7 6GB 2
infra1 192.168.122.23 CentOS7 6GB 2

How to deploy openshift cluster ?

Step 1

Update the system and host names for all nodes

Unix Command!!!

$ yum update -y

$ nano /etc/hostname (OR) $ nmtui

Step 2

Enable SELINUX=enforcing on all master/worker/infra nodes

Unix Command!!!

$ nano /etc/selinux/config

We can verify the status by running the below command. The correct status will not reflect once we changed until we reboot the machines

$ sestatus

Step 3

Reboot all master/worker/infra nodes

Unix Command!!!

$ reboot

Step 4

Checkout the code (git clone https://github.com/SubhakarKotta/okd-installation-centos.git)

Configure okd-installation-centos/provisioning/settings.sh file enter image description here

Step 5

Copy "okd-installation-centos" folder to all master/worker nodes

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

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

  • 192.168.122.21 (master)

Unix Command!!!

$ ssh-keygen -t rsa -b 2048 -N "" -f ~/.ssh/id_rsa $ cat ~/.ssh/id_rsa.pub | ssh root@192.168.122.21 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys" $ cat ~/.ssh/id_rsa.pub | ssh root@192.168.122.22 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys" $ cat ~/.ssh/id_rsa.pub | ssh root@192.168.122.23 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

Step 8

Execute the below script only on 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 login -u admin -p admin https://console.okd.nip.io:8443

$ oc get projects

How to access okd Console ?

The okd Console can be accessed via the below URL from your local machine

https://console.okd.nip.io:8443

What are the addons provided ?

  • helm

About

This repository is used to create OKD 3.11 Cluster with 9 simple steps on Bare VM's

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%