Kubernetes - Create Persistent Volumes


Overview

The manual creation of Persistent Volumes is not required. With Cluster-Admin permissions, the vFunction Kubernetes 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 Kubernetes 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 Kubernetes Documentation

Kubernetes supports many workflows to create Persistent Storage. Please select from the list below to be redirected to Kubernetes’s documentation. Note that these links are version-specific (for example, additional types of Persistent Storage exist but were deprecated in v1.28 or below) and new Kubernetes documentation may have been published with updated steps.


Add references to Persistent Volumes to the vFunction Kubernetes installation.ymal

The vFunction Kubernetes Installation TGZ includes a YAML to configure the environment. This YAML is available in the vFunction Kubernetes Installation TGZ under vfunction-server-for-kubernetes/config/installation.yaml.

  1. Open the vFunction Kubernetes 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. Run the vfunction-server-for-kubernetes/install.sh script