Sameer Pansari:
How to check which POD is using PVC ? ex: am unable to delete PVC and there are more than 20 pods running ?
Chris Boot:
Do the events in the namespace give you any hints? Describe the pvc, and if there’s nothing there check kubectl get events
to see everything in the namespace.
Ps:
kubectl get pod -o jsonpath='{range .items[*]}POD={.metadata.name} VOLUME={.spec.volumes[*].name} CLAIM={.spec.volumes[*].persistentVolumeClaim.claimName}{"\n"}{end}'