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.
Or consider using democratic-csi for your k8s cluster
[Appendix] Install ZFS server on Linux Storage on Ubuntu Linux
If you do not have an existing file system - Install and configure an NFS storage class.
Refer to the following document for more details:
If you have an existing file system - Verify that it can be used.
If you have your storageclass configured, verify the following.
You can save and read files in your storage class, create k8s PVC and PV.
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
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"}'