I created PV as follows:
apiVersion: v1
kind: PersistentVolume
metadata:
name: foo-pv
spec:
storageClassName: "my-storage"
claimRef:
name: foo-pvc
namespace: foo
Why we need to give storageClassName in PV? When Storage class creates PV, why to give storageClassName in PV?
Can someone help me to understand this?