102 Red Hat OpenShift and IBM Cloud Paks on IBM Power Systems: Volume 1
6.1  Deployment process overview
This section describes the Red Hat OpenShift 3.11 deployment process on PowerVC by 
using Terraform. The process includes the following steps:
1. Setting up the deployment environment:
–C o n f i g u r e  D N S .
– Configure PowerVC user and project.
– Create the virtual machine to host deployment tools.
– Prepare the deployment host and install Terraform and OpenShift-Ansible.
2. OpenShift Container Platform Deployment:
– Infrastructure Deployment by using Terraform. Terraform deploys the PowerVC 
network, virtual machines, and storage. It uses the OpenStack provider (plug-in) to 
build resources directly to the PowerVC APIs.
– OpenShift Container Platform Installation using OpenShift-Ansible. OpenShift-Ansible 
is a set of Ansible playbooks that orchestrate complex deployment tasks for installing 
the OpenShift Container Platform on the physical or virtual servers.
6.2  Setting up the deployment environment
This section shows how to set up the environment.
6.2.1  Setting up the DNS
OpenShift Container Platform requires a fully functional DNS server in the environment. A set 
of records must be configured in your DNS to provide name resolution for hosts and 
containers running on the platform. Optionally, you can also configure a wildcard DNS record 
that points to the load balancer or routers to avoid the need to update your DNS configuration 
when new routes are added.
Example 6-1 shows a sample DNS Masquerade configuration.
Example 6-1   DNS Masquerade configuration
# cat > /etc/dnsmasq.conf <<EOF_/etc/dnsmasq.conf
conf-dir=/etc/dnsmasq.d,.rpmnew,.rpmsave,.rpmorig
strict-order
domain-needed
local=/domain.example.com/
bind-dynamic
log-queries
resolv-file=/etc/resolv.dnsmasq
###----------------------------ocp-aio-----------------------------------###
address=/bsocp01.domain.example.com/192.168.11.223
ptr-record=223.97.108.9.in-addr.arpa,bsocp01.domain.example.com
Note: The Deployment Host can be any host or virtual machine that is running an 
operating system that is supported by Terraform and OpenShift-Ansible tools. This chapter 
describes how to install and configure the Deployment Host on PowerVC running Red Hat 
ALT 7.6 (ppc64le) operating system.