Anyone getting this error on lightning lab, 5th question, on alpha-claim pvc ? . . .

Edu:
Anyone getting this error on lightning lab, 5th question, on alpha-claim pvc ?

  Type     Reason              Age                   From                         Message
  ----     ------              ----                  ----                         -------
  Warning  ProvisioningFailed  17m (x16 over 21m)    persistentvolume-controller  <http://storageclass.storage.k8s.io|storageclass.storage.k8s.io> "slow-storage" not found
  Warning  ProvisioningFailed  15m (x7 over 16m)     persistentvolume-controller  <http://storageclass.storage.k8s.io|storageclass.storage.k8s.io> "slow-storage" not found
  Warning  ProvisioningFailed  4m32s (x41 over 14m)  persistentvolume-controller  <http://storageclass.storage.k8s.io|storageclass.storage.k8s.io> "slow-storage" not found

Pratik Patel:
You have to match PVC storage class name with SC name on PV

Edu:
Didn’t work either.

Name:          mysql-alpha-pvc
Namespace:     alpha
StorageClass:  slow
Status:        Pending
Volume:        
Labels:        &lt;none&gt;
Annotations:   &lt;none&gt;
Finalizers:    [<http://kubernetes.io/pvc-protection|kubernetes.io/pvc-protection>]
Capacity:      
Access Modes:  
VolumeMode:    Filesystem
Mounted By:    alpha-mysql-68c6b855bb-kv52g
Events:
  Type     Reason              Age   From                         Message
  ----     ------              ----  ----                         -------
  Warning  ProvisioningFailed  11s   persistentvolume-controller  <http://storageclass.storage.k8s.io|storageclass.storage.k8s.io> "slow" not found

Edu:
When trying to get the SC I found nothing

controlplane $ kubectl -n alpha get sc
No resources found

Edu:
Now it worked, I matched the pvc capacity with the one in the pv and got provisioned!

1 Like

Edu:
Thank you for your help!! :slightly_smiling_face:

Pratik Patel:
Great :+1::skin-tone-2:

You also need to match accessMode

2 Likes

3 items need to be corrected in pvc:

  1. size should be <= pv
  2. StorageClass should be same as pv - ‘slow’
  3. accessModes should be same as pv - ‘ReadWriteOnce’

And the PVC name should be corrected in deployment.

2 Likes