Hi All, I am lost in concept of storage class. i understood that when we use sto . . .

Sara:
Hi All, I am lost in concept of storage class. i understood that when we use storage class, we dont need to create pv, pv will be automatically created. i tried all storage classes i found in lab and even created my own storage classes but pvc never got bound to any pv. no new pv showed up automatically. i used binding options Immediate. Help me

Abdelmouhssine Houari:
Hello, I’am in the same concept as you " storage", did you attack a pod to PVC while creating the pod ? i think that you should create the storage class regarding to any cloud providers, then, you should create a PVC and attach this POD to the PVC.

Sara:
i understood pod is not needed to see binding of Pv with pvc thats why i used Immediate binding mode. but i will try with pod. thanks for replying.

Shanmuga Raj:
for dynamic provisioning of PVC you need a StorageClass that is configured to provide the storage. I am not sure what you have tried so far, but you can use a very simple NFS based StorageClass in your own lab using something like this
https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
once you have this sc configured, your PVC automatically gets a PV created in NFS and bound

Sara:
Hi Raj, thanks i will try that.