<p>I am trying to deploy a service on minikube(with hyper-V on windows 11) using yaml file.</p>
<p>On dashboard, I see that corresponding pod remains in 'pending' state for ever.</p>
<p>When I check the events, I see:</p>
<blockquote>
<p>storageclass.storage.k8s.io &quot;local-path&quot; not found</p>
</blockquote>
<p>Looking into yaml, I see this entry:</p>
<blockquote>
<p>storageClassName: &quot;local-path&quot;</p>
</blockquote>
<p>So error clearly states something is wrong with storageClassName.</p>
<p>What is appropriate value for storageClassName to workaround it?</p>

Mandroid
<p>Unless you have specific reason to know a specific storage class should be used (your cluster administrator has created a storage class for some specific purpose and told you to use it), you should omit the <code>storageClassName:</code> line entirely.  This will use the cluster default; in Minikube that's the <a href="https://minikube.sigs.k8s.io/docs/handbook/persistent_volumes/#dynamic-provisioning-and-csi" rel="nofollow noreferrer">default storage provisioner</a>.</p>
