question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

storage enabled but no persistent volume found in cluster

See original GitHub issue

v1.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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
ktsakalozoscommented, Nov 15, 2018

Hi @khteh ,

microk8s.enable storage will set a default storage class as you can see here (get pv is expected to be empty):

> microk8s.kubectl get sc
NAME                          PROVISIONER            AGE
microk8s-hostpath (default)   microk8s.io/hostpath   62s

Can you make sure that microk8s.kubectl get all -n kube-system reports back a deployment.apps/hostpath-provisioner and a corresponding pod? For some reason the microk8s.inspect report you attached does not include the kubectl 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.

1reaction
ktsakalozoscommented, Nov 15, 2018

@khteh, first restart microk8s to make sure all services are up:

sudo snap disable microk8s
sudo snap enable microk8s

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 a microk8s.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found