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: <none>
Annotations: <none>
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!!
Pratik Patel:
Great :skin-tone-2:
You also need to match accessMode
1 Like
3 items need to be corrected in pvc:
- size should be <= pv
- StorageClass should be same as pv - ‘slow’
- accessModes should be same as pv - ‘ReadWriteOnce’
And the PVC name should be corrected in deployment.
2 Likes