8.3. Separating Broker Components by Host
For the broker application to function properly, not all components must be installed on the same broker host where the broker application is installed. Instead, the logical components of OpenShift Enterprise can be installed and configured on separate hosts. Red Hat
recommends this configuration for ease of management. The necessary configuration differences from the basic installation of each component, as detailed in Chapter 7, Manually Installing and Configuring a Broker Host, are described in the subsequent sections.
8.3.1. BIND and DNS
The broker application requires an update key to update a remote BIND server. This is regardless of whether you are using a BIND server that is delegated specifically for an OpenShift Enterprise installation by your organization's DNS, or if your organization provides key-based update access to an existing BIND server for the domain used by OpenShift Enterprise.
The HMAC-SHA256 key generated by the
dnssec-keygen
tool in Section 7.3.2, “Configuring BIND and DNS” is saved in the /var/named/domain.key
file, where domain is your chosen domain. Note the value of the secret
parameter and enter it in the CONF_BIND_KEY
field in the OpenShift Enterprise install script. Alternatively, enter it directly in the BIND_KEYVALUE
field of the /etc/openshift/plugins.d/openshift-origin-dns-nsupdate.conf
broker host configuration file.
The
oo-register-dns
command registers a node host's DNS name with BIND, and it can be used to register a localhost
or a remote name server. This command is intended as a convenience tool that can be used with demonstrating OpenShift Enterprise installations that use standalone BIND DNS.
Red Hat
recommends defining two separate domains: one to contain the fixed OpenShift Enterprise hosts, and another for the dynamic application namespace. The two domains do not have to be related. The broker application only needs to update the dynamic domain. In most production installations, the
oo-register-dns
command is not required because existing IT processes handle host DNS. However, if the command is used for defining host DNS, the update key must be available for the domain that contains the hosts.
The
oo-register-dns
command requires a key file to perform updates. If you created the /var/named/$domain.key
file described in Section 7.3.2.1, “Configuring Sub-Domain Host Name Resolution”, copy this to the same location on every broker host as required. Alternatively, use the randomized .key
file generated directly by the dnssec-keygen
command, but renamed to $domain.key
. The oo-register-dns
command passes the key file to nsupdate
, so either format is valid.