Skip to content

sspreitzer/openshift-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.