All Projects → s-u-b-h-a-k-a-r → okd-installation-centos

s-u-b-h-a-k-a-r / okd-installation-centos

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

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to okd-installation-centos

snc
Single Node Cluster creation scripts for OpenShift 4.x as used by CodeReady Containers
Stars: ✭ 84 (+265.22%)
Mutual labels:  openshift, openshift-cluster, openshift-deployment
okd4-upi-lab-setup
Building an OKD 4 Home Lab
Stars: ✭ 72 (+213.04%)
Mutual labels:  openshift, okd
argocd-operator-helm
[DEPRECATED] Argo CD Operator (Helm) installs Argo CD in OpenShift and Kubernetes.
Stars: ✭ 18 (-21.74%)
Mutual labels:  openshift, okd
OpenShift-Azure-Terraform
⛑ Deploy OpenShift Origin on Azure using Terraform and Ansible
Stars: ✭ 21 (-8.7%)
Mutual labels:  openshift, openshift-origin
openshift-install-power
UPI Install helper to deploy OpenShift 4 on IBM Power Systems Virtual Server using Terraform IaC
Stars: ✭ 16 (-30.43%)
Mutual labels:  openshift, openshift-deployment
openshift-install
Install Openshift Docker Meetup Jakarta-Indonesia
Stars: ✭ 17 (-26.09%)
Mutual labels:  openshift, openshift-origin
Origin
Conformance test suite for OpenShift
Stars: ✭ 8,046 (+34882.61%)
Mutual labels:  openshift, openshift-origin
Minishift
Run OpenShift 3.x locally
Stars: ✭ 2,246 (+9665.22%)
Mutual labels:  openshift, openshift-origin
openshift-json-schema
A set of JSON schemas for various OpenShift versions, extracted from the OpenAPI definitions
Stars: ✭ 23 (+0%)
Mutual labels:  openshift, openshift-origin
commons.openshift.org
Repository for OpenShift Commons Community Site
Stars: ✭ 31 (+34.78%)
Mutual labels:  openshift, okd
openshift-on-footloose
Running Openshift on Footloose, docker in docker
Stars: ✭ 27 (+17.39%)
Mutual labels:  openshift
openshift-quickstart
Developer Workshops related to the Java development on OpenShift
Stars: ✭ 19 (-17.39%)
Mutual labels:  openshift
jbpm-spring-boot
Sample of a jbpm service with spring boot. It runs on OpenShift and it has prometheus metrics and a grafana dashboard
Stars: ✭ 16 (-30.43%)
Mutual labels:  openshift
techlab
This repository contains the APPUiO and OpenShift Techlab tutorials.
Stars: ✭ 51 (+121.74%)
Mutual labels:  openshift
verification-tests
Blackbox test suite for OpenShift.
Stars: ✭ 41 (+78.26%)
Mutual labels:  openshift
sarjitsu
dockerized setup for visualizing System Activity Report (SAR) data.
Stars: ✭ 20 (-13.04%)
Mutual labels:  openshift
oshinko-cli
Command line interface for spark cluster management app
Stars: ✭ 13 (-43.48%)
Mutual labels:  openshift
summit-game-ansible
Playbook for provisioning the Red Hat Summit 2016 Balloon Game Demo
Stars: ✭ 13 (-43.48%)
Mutual labels:  openshift
ibm-spectrum-scale-csi
The IBM Spectrum Scale Container Storage Interface (CSI) project enables container orchestrators, such as Kubernetes and OpenShift, to manage the life-cycle of persistent storage.
Stars: ✭ 41 (+78.26%)
Mutual labels:  openshift
grafana-operator
An operator for Grafana that installs and manages Grafana instances, Dashboards and Datasources through Kubernetes/OpenShift CRs
Stars: ✭ 449 (+1852.17%)
Mutual labels:  openshift

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].