Kubernetes - Create Persistent Volumes
- Overview
- Create Persistent Volumes following the Kubernetes Documentation
- Add references to Persistent Volumes to the installation.yaml
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.
- Container Storage Interface (CSI) implemented through Generic Ephemeral Volumes
- Fibre Channel (FC) storage implemented through fc.yaml
- HostPath volume with configuration example
- SCSI over IP storage (isci) with configuration example
- Local storage devices mounted on nodes
- Network File System (NFS) storage
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
.
- Open the vFunction Kubernetes YAML
- Add the path to the MySQL DB Persistent Volume as the value for the the
storage.mysql_persistent_volume
key - Add the path to the Measurement Filesystem Volume Storage as the value for the
storage.storage_persistent_volume
key - Run the vfunction-server-for-kubernetes/install.sh script