Storage classes

A StorageClass object describes and classifies dynamically provisioned storage that can be requested on demand. The objects can also be used to manage and control access to the storage. Cluster administrators define and create the objects that users can request without needing to know all the details about the underlying storage sources.

Installation of FNCM needs at least one storage class name associated with the dynamic storage that you plan to use for file-based ReadWriteMany (RWX) persistent volumes. Your storage must have sufficient space for the deployment and data. For more information, see Storage Classes.

For more information about storage class parameters, see Product Documentation for Red Hat OpenShift Container Storage. For example, to allow a deployment to be deleted and redeployed without losing the data and files of a deployment use reclaimPolicy: Retain. For cloud platforms where a group owner of the file system is needed, use gidAllocate: "true" to request one.

Example YAML files to create storage classes on Red Hat OpenShift Kubernetes Service (ROKS) are provided in the container-samples/descriptors folder. For more information about downloading container-samples, see Preparing a client to connect to the cluster.

Note: You can get the existing storage classes in the environment by running the following command:
kubectl get storageclass

Take note of the storage classes that you want to use for your deployment.