storage enabled but no persistent volume found in cluster
See original GitHub issuev1.12.2
inspection-report-20181115_174033.tar.gz
I have enabled storage microk8s.enable storage
however, microk8s.kubectl get pv
shows “No resources found”. As a result, all the PVCs are in pending state. Please advise. THanks!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:19 (17 by maintainers)
Top Results From Across the Web
storage enabled but no persistent volume found in cluster
I have enabled storage microk8s.enable storage however, microk8s.kubectl get pv shows "No resources found". As a result, all the PVCs are in ...
Read more >no persistent volumes available for this claim and no ...
A cluster administrator creates a PersistentVolume that is backed by physical storage. The administrator does not associate the volume with any ...
Read more >Troubleshoot persistence volumes issues
To check if the status of your persistence volumes, run the kubectl get pvc command. If the output message shows that your PVC...
Read more >Configure a Pod to Use a PersistentVolume for Storage
This page shows you how to configure a Pod to use a PersistentVolumeClaim for storage. Here is a summary of the process: You,...
Read more >Quick Fix: vSphere with Tanzu – no persistent volumes ...
Looking into the events of the namespaces was seeing event entries as seen below. ... So basically the POD has unbound immediate Persistent...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @khteh ,
microk8s.enable storage
will set a default storage class as you can see here (get pv
is expected to be empty):Can you make sure that
microk8s.kubectl get all -n kube-system
reports back adeployment.apps/hostpath-provisioner
and a corresponding pod? For some reason themicrok8s.inspect
report you attached does not include thekubectl get all output
as if your api server is not running.Here is a PVC we use during our testing https://github.com/ubuntu/microk8s/blob/master/tests/templates/pvc.yaml
Would would you like to share a minimal PVC that is failing for you?
Thank you for using microk8s and for opening this issue.
@khteh, first restart microk8s to make sure all services are up:
Wait a few seconds so that all services have initialized and try a
microk8s.kubectl get all --all-namespaces
to get the status of all pods services deployments running on your microk8s. Do also amicrok8s.kubectl get no
to see if your node has registered with the apiserver.microk8s.inspect
will run through all the services and tell you if anyone is failing.Could you share the full set of manifests you are applying or at least a complete minimal example of a setup that is failing?
Finally, you should know that microk8s is using most of the upstream kubernetes binaries found in https://github.com/kubernetes/kubernetes. And I agree with your point that kubernetes by itself is hard to setup; this is exactly what microk8s solves.