Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

minikube on windows: storageclass.storage.k8s.io not found

I am trying to deploy a service on minikube(with hyper-V on windows 11) using yaml file.

On dashboard, I see that corresponding pod remains in ‘pending’ state for ever.

When I check the events, I see:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

storageclass.storage.k8s.io "local-path" not found

Looking into yaml, I see this entry:

storageClassName: "local-path"

So error clearly states something is wrong with storageClassName.

What is appropriate value for storageClassName to workaround it?

>Solution :

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 storageClassName: line entirely. This will use the cluster default; in Minikube that’s the default storage provisioner.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading