Code Monkey home page Code Monkey logo

openshift-poc's Introduction

OpenShift Proof of Concept

Table of Content

Introduction

This repository aims to host information needed to install Red Hat OpenShift Container Platform. Focus is on a High Availability reference installation.

Platform Details

  • Red Hat Enterprise Linux 7.5
  • Red Hat OpenShift Container Platform 3.9

Link Collection

High Availability Architecture

HA Architecture

Bill of Materials

BOM

The mentioned node sizes (not masters or loadbalancer) are the minimum prerequisites as of the documentation. Based on my experience it is a good rule of thumb to double the node size for a normal user experience, quadruple for a very good user experience.

Very important: The resources you apply to an OpenShift cluster should be fully reserved. There should not be any resource stealing from other VMs or memory, cpu, storage, network over-commitment. Otherwise the Kubernetes resource quotas will have no effect and application developers can not rely on the performance of the platform.

Example inventory

DNS

All hosts listed in the inventory file must be resolvable to the interface where OpenShift traffic is intended.

Additionally to the hosts in the inventory there must be defined three DNS aliases;

  1. The internal api endpoint DNS, eg. internal-ocp.example.com, resolving to the loadbalancer nodes LAN address, which forwards the traffic to the masters
  2. The external api endpoint DNS, eg. ocp.example.com, resolving to an external/internet facing loadbalancer, which forwards traffic also to the masters
  3. A wildcard DNS, eg *.apps.example.com, that will be forwarded to the OpenShift routers

Entries could also be added via the host preparation to /etc/hosts.

DNS example

FQDN IP
ocp-lb-1.ocp.example.com 192.168.0.2
ocp-master-1.ocp.example.com 192.168.0.3
ocp-master-2.ocp.example.com 192.168.0.4
ocp-master-3.ocp.example.com 192.168.0.5
ocp-node-1.ocp.example.com 192.168.0.6
ocp-node-2.ocp.example.com 192.168.0.7
ocp-node-3.ocp.example.com 192.168.0.8
ocp-node-4.ocp.example.com 192.168.0.9
ocp-node-5.ocp.example.com 192.168.0.10
internal-ocp.example.com 192.168.0.2
ocp.example.com 192.168.0.2
*.apps.example.com 192.168.0.2

Storage

This PoC makes use of Container Native Storage (CNS), which is GlusterFS and Heketi deployed inside OpenShift. Please make sure there is an additional disk available with at least 200GB space on the first three nodes. See the glusterfs group in the inventory file. Check and change the device name if needed, eg. /dev/sdb.

Sidenotes

OpenShift deploys software loadbalancers (HAProxy) on infra nodes to route traffic to applications, however a company enterprise grade loadbalancer cluster is assumed to forward traffic to these OpenShift software loadbalancers and API of the master nodes.

The OpenShift provided "lb" node is not meant to be used in production environments as it lacks high availability features.

The OpenShift provided "lb" node is only intended to serve API traffic to the "master" nodes, but can also be used to route traffic to the OpenShift hosted router aka software loadbalancer HAProxy.

openshift-poc's People

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.