OpenShift Operator - Create Persistent Volumes


Overview

The manual creation of Persistent Volumes is not required. With Cluster-Admin permissions, the vFunction OpenShift Operator Installation Script will try to dynamically create 2 x 50gb Persistent Volumes automatically using the default StorageClass and Persistent Volume Claims.

In restricted environments, the 2 x 50gb Persistent Volumes can be manually created and can be referenced in the vFunction OpenShift Operator’s installation.yaml.

If manually creating these Persistent Volumes, one will be used for MySQL DB Storage and one will be used for Measurement Filesystem Storage. For ease of usage, the naming conventions used when creating the Persistent Volumes should help identify which Persistent Volume is which.


Create Persistent Volumes following the OpenShift Documentation

OpenShift supports many workflows to create Persistent Storage to be used by an Operator. Please select from the list below to be redirected to OpenShift’s documentation. Note that these links are version-specific (Container Platform v4.14) and new OpenShift documentation may have been published with updated steps.


Add references to Persistent Volumes to Operator

The OpenShift Operator includes a YAML to configure the environment. This YAML is available in the vFunction OpenShift Offline Installation TGZ under vfunction-server-for-openshift/config/installation.yaml. This YAML is available in the OpenShift Console for Online Installations.

  1. Open the vFunction Operator YAML
  2. Add the path to the MySQL DB Persistent Volume as the value for the the storage.mysql_persistent_volume key
  3. Add the path to the Measurement Filesystem Volume Storage as the value for the storage.storage_persistent_volume key
  4. If using the Offline Installation package, run the vfunction-server-for-openshift/install.sh script
  5. If using the OpenShift Console (Online), the changes should be applied with the Create Instance button in the UI