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

These properties are spread out throughout the file and are not collocated, as shown in Figure 15-9.

Figure 15-9. The ansible.cfg configuration properties are not collocated

The default inventory file used by Ansible is /etc/ansible/hosts, which is used to configure the

hosts for the OpenShift master nodes, worker nodes, etcd nodes, and LoadBalancer node. Open the /etc/

ansible/hosts file in a vi editor.

sudo vi /etc/ansible/hosts

At the top of the file configure the following:

[OSEv3:children]

masters

etcd

lb

nodes

Next, specify some variables:

[OSEv3:vars]

ansible_user=centos

ansible_sudo=true

deployment_type=origin

ansible_ssh_private_key_file=~/docker.pem

The top section of the /etc/ansible/hosts file is shown in Figure 15-10.

343

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

Saved successfully!

Ooh no, something went wrong!