StroageClass concept

Hi all,

I would like to know more about how does the storageClass can use corresponding provisioner to provision PV.

I know that I need to add the provisioner name under StorageClass definition. So does this value used to match/call the provisioner?

Please help to clarify.

Thank you so much

Hi @hlngai,

PersistentVolume (PV) is a piece of storage in the cluster that has been provisioned by an administrator or dynamically provisioned using Storage Classes, so StorageClass allows storage volumes to be created on-demand without manual work.

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: slow
provisioner: kubernetes.io/gce-pd
parameters:
  type: pd-standard

As you said you need to add the provisioner name under StorageClass definition to be able to call the provisioner and provisioning the volumes dynamically, check the link below for more details.