In this section, you will learn how to solve the most common storage issues associated with Kubernetes. After following the recipes in this chapter, you will gain the basic skills required to troubleshoot persistent volumes stuck in pending or termination states.
Getting ready
Make sure that you have a Kubernetes cluster ready and kubectl configured to manage the cluster resources.
How to do it…
This section is sub-divided further into the following subsections to facilitate the process:
- Persistent volumes in the pending state
- A PV is stuck once a PVC has been deleted
Persistent volumes in the pending state
You have deployed an application, but both pods and persistent volume claims are stuck in the pending state, similar to the following:
$ kubectl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
mysql-pv-claim Pending rook-ceph-block 28s
Let's perform the following steps to start troubleshooting:
- First, describe the PVC to...