19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 15 ■ Using an HA Master with OpenShift

OpenShift

Master 1

OpenShift

Master 2

Elastic Load

Balancer

Kubernetes

HA Master

URL

Figure 15-1. OpenShift HA master

Overview

A typical production level OpenShift Origin cluster would consist of a high-availability master. In this

chapter we shall discuss such a high-availability master OpenShift Origin cluster. The stages are as follows:

Setting the environment

Installing the credentials

Installing the network manager

Installing OpenShift Ansible

Configuring Ansible

Running Ansible Playbook

Testing the cluster

Testing the HA

Setting the Environment

The OpenShift cluster we shall create consists of the following EC2 instances.

1 Ubuntu instance for OpenShift Ansible

2 CentOS 7 for OpenShift Masters

1 CentOS 7 for HAProxy

1 CentOS 7 for OpenShift Worker

1 Centos 7 for etcd

CentOS 7 instances may be launched from https://aws.amazon.com/marketplace/pp/B00O7WM7QW.

Select a Region and click Continue. In the Launch on EC2:CentOS 7 (x86_64) - with Updates HVM dialog

that appears, select an m3.large or larger EC2 Instance Type. For VPC select EC2 Classic. For Key Pair select

a pre-existing key pair (docker.pem in the example). Click the button Launch With 1-Click. The CentOS

instances are shown in Figure 15-2.

336

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!