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 Cloud Pak for Business Automation needs at least two storage class names. One that is associated with the dynamic storage that you plan to use for file-based ReadWriteMany (RWX), and another for block storage for ReadWriteOnce (RWO). Your storage must have sufficient space for the deployment. 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 cert-kubernetes/descriptors folder. For more information about downloading cert-kubernetes, 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:
oc get storageclass

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