Assumes you have access to an existing, dedicated GlusterFS cluster that has raw
devices available for consumption and management by a Heketi server. If you do
not have this, you can create a three node cluster using your virtual machine
solution of choice. Ensure sure you create a few raw devices and give plenty of
space (at least 100GB recommended). See
Red Hat Gluster Storage Installation Guide.

Heketi service/client node running Red Hat Enterprise Linux (RHEL) 7.x or RHGS 3.1. Heketi can be installed on one of the Gluster nodes:

glusterclient2.rhs (192.168.1.203)

OpenShift Container Platform node. This example uses an all-in-one OpenShift Container Platform cluster
(master and node on a single host), though it can work using a standard,
multi-node cluster as well.

k8dev2.rhs (192.168.1.208)

Installing and Configuring Heketi

Heketi is used to manage the Gluster cluster storage (adding volumes, removing
volumes, etc.). As stated, this can be RHEL or RHGS, and can be installed on one
of the existing Gluster storage nodes. This example uses a stand-alone RHGS 3.1
node running Heketi.

Install Heketi and the Heketi client. From the host designated to run Heketi and
the Heketi client, run:

# yum install heketi heketi-client -y

The Heketi server can be any of the existing hosts, though typically this will
be the OpenShift Container Platform master host. This example, however, uses a separate host
not part of the GlusterFS or OpenShift Container Platform cluster.

Create and install Heketi private keys on each GlusterFS cluster node. From the
host that is running Heketi:

Dynamically Provision a Volume

Create a StorageClass object definition. The definition below is based on the
minimum requirements needed for this example to work with OpenShift Container Platform. See
Dynamic
Provisioning and Creating Storage Classes for additional parameters and
specification definitions.