Answers for "fix pvc pending kubernetes"

0

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.
Posted by: Guest on March-09-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language