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

Running the Ansible Playbook

The default inventory file is /etc/ansible/hosts but another file may be configured with the inventory

setting in the ansible.cfg, for example:

inventory = /etc/ansible/inventory/hosts

We have configured the default inventory file /etc/ansible/hosts. Start the OpenShift cluster by

running the Ansible playbook:

ansible-playbook ~/openshift-ansible/playbooks/byo/config.yml

The OpenShift software such as Docker, HAProxy, and so on are installed and started on the configured

hosts, as shown in Figure 15-11.

Figure 15-11. Running the Ansible Playbook

SSH log in to one of the master instances and list the nodes in the OpenShift cluster:

oc get nodes

The three nodes, two of them non-schedulable, are listed as shown in Figure 15-12.

346

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

Saved successfully!

Ooh no, something went wrong!