Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

fix pvc pending kubernetes


If you're using Microk8s, you have to enable storage before you can start a PersistentVolumeClaim successfully.

Just do:

microk8s.enable storage
You'll need to delete your deployment and start again.

You may also need to manually delete the "pending" PersistentVolumeClaims because I found that uninstalling the Helm chart which created them didn't clear the PVCs out.

You can do this by first finding a list of names:

kubectl get pvc --all-namespaces
then deleting each name with:

kubectl delete pvc name1 name2 etc...
Once storage is enabled, reapplying your deployment should get things going.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fix #pvc #pending #kubernetes
ADD COMMENT
Topic
Name
1+4 =