PrimeHub requires a default storage class that will be used to provision new user and group volumes.

In this section, you will do the following.

If you have an existing file system

If you have your storageclass configured, verify the following.

  1. You can save and read files in your storage class, create k8s PVC and PV.

  2. Your storage class must be set to default in the Kubernetes platform. The following command can be used to set the default storage class.

    # Set as default
    kubectl annotate sc <sc-name> storageclass.kubernetes.io/is-default-class=true
    # Check default storage class
    kubectl get sc | grep default
    NAME                   PROVISIONER                                     RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
    <sc-name> (default)    cluster.local/nfs-subdir-external-provisioner   Delete          Immediate           true                   XmXXs
    

Storage class settings recommendation

You can set your k8s storage-class reclaim policy to retain and volume binding mode to immediate in case you want to keep your data after deleting the k8s pvc.

kubectl patch sc <sc-name> -p '{"VolumeBindingmode":"Immediate"}'
kubectl patch sc <sc-name> -p '{"reclaimPolicy":"Retain"}'