Kubernetes challenge #4 0/2 nodes are available: pod has unbound immediate PersistentVolumeClaims

Hi all,
i am facing issue with kubernetes challenge 4. everything seems correct as per requirement however pvc cant be provisioned as there is no storage class provided
not sure if i am missing anything.

This being a statefulset problem, you have to create the persistentvolumes for each pod instance of the statefulset, and you let the statefulset resources create the PVCs for you. It’s a bit tricky; you may want to look at the solution that’s up on github.

The lack of a defined storage class (sc) is not a problem; there’s a default class that gets used in this case. The more likely problem is that there is no PV that is compatible with the PVC the sts is creating for you. There’s no explicit storage class, so the PVs and the PVCs need to have compatible sizes and access modes, or the created PVCs will not bind, which seems to be your problem here.

Thank you @rob_kodekloud for your response, i thought there has to be storage class to let stateful set provision PV too but that is not how this challenge is asked. i need to make sure PV’s are present to match PVC in absence of storage class. i misunderstood the question little bit. Thanks anyway