Giter Site home page Giter Site logo

okd-installation-centos's Introduction

okd-installation-centos

enter image description here

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
okd-master-node 100.10.10.100 CentOS7 16GB 4
okd-worker-node-1 100.10.10.101 CentOS7 16GB 4
okd-worker-node-2 100.10.10.102 CentOS7 16GB 4
okd-worker-node-3 100.10.10.103 CentOS7 16GB 4
okd-infra-node-1 100.10.10.104 CentOS7 16GB 4

How to deploy openshift cluster ?

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

$ nano /etc/hostname (OR) $ nmtui

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 reflect 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)

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

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

$ cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

okd-worker-node-1

$ cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

okd-worker-node-2

$ cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

okd-worker-node-3

$ cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

okd-infra-node-4

$ cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

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

okd-installation-centos's People

Contributors

s-u-b-h-a-k-a-r avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.