19.06.2021 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 15 ■ Using an HA Master with OpenShift

All of the preceding software except the Network Manager is installed automatically when we run the

Ansible playbook. We also need to install the docker.pem credentials on each of the CoreOS instances and

the Ubuntu instance for OpenShift Ansible, which we shall install next.

Installing the Credentials

From the local machine SCP copy the docker.pem into the Ubuntu instance that is the client instance for

launching the OpenShift cluster using the Public IP address or Public DNS, which may be obtained from the

EC2 Console:

scp -i docker.pem docker.pem ubuntu@ec2-52-87-178-15.compute-1.amazonaws.com:~

Similarly, obtain the Public DNS for each of the CentOS instances, the ones for the masters, worker,

Etcd, and LoadBalancer. SCP copy the docker.pem file to each of the CentOS instances. The following scp

commands copy the docker.pem file to the master instances:

scp -i docker.pem docker.pem centos@ec2-54-90-107-98.compute-1.amazonaws.com:~

scp -i docker.pem docker.pem centos@ec2-54-221-182-68.compute-1.amazonaws.com:~

The following scp command copies the docker.pem to the Worker instance.

scp -i docker.pem docker.pem centos@ec2-54-159-26-13.compute-1.amazonaws.com:~

The following scp command copies the docker.pem to the LoadBalancer instance.

scp -i docker.pem docker.pem centos@ec2-54-226-7-241.compute-1.amazonaws.com:~

The following scp command copies the docker.pem to the Etcd instance:

scp -i docker.pem docker.pem centos@ec2-54-160-210-253.compute-1.amazonaws.com:~

The scp commands do not generate any output, as shown in Figure 15-4.

Figure 15-4. Copying docker.pem to each of the CoreOS instances

338

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

Saved successfully!

Ooh no, something went wrong!