Storage Classes in Kubernetes

With Storage Classes you can define a provisioner such as Google Storage, that can automatically provision storage on Google Cloud and attach that to Pods when a claim is made. That's called dynamic provisioning of Volumes.

Example:

apiVersion: storage.k8s.io/v1
find: StorageClass
metadata:
  name: google-storage
provisioner: kubernetes.io/gce-pd
So, we do not longer need thr PV definition - it will be created automatically. That we need is to add to spec.storageClassName to the PVC definition file.