<p>I’ve a PVC in RWX.
2 pods use this PVC.
I want to know which pods ask volume to the PVC and when. How can I manage that?</p>

<p>As far as i know there is no direct way to figure out a PVC is used by which pod
To get that info possible workaround is grep through all the pods for the respective pvc :</p>
<pre><code>Ex: 
- To display all the pods and their respective pvcs:
kubectl get pods -o jsonpath='{&quot;POD&quot;}{&quot;\t&quot;}{&quot;PVC Name&quot;}{&quot;\n&quot;}{range .items[*]}{.metadata.name}{&quot;\t&quot;}{range .spec.volumes[*]}{.persistentVolumeClaim.claimName}{&quot;\t&quot;}{end}{&quot;\n&quot;}{end}'

POD     PVC Name
web1-0  www1-web1-0
web16-0 www16-web16-0

- To get information about a particular PVC (in this case:www16-web16-0 ) Using grep :
kubectl get pods -o jsonpath='{&quot;POD&quot;}{&quot;\t&quot;}{&quot;PVC Name&quot;}{&quot;\n&quot;}{range .items[*]}{.metadata.name}{&quot;\t&quot;}{range .spec.volumes[*]}{.persistentVolumeClaim.claimName}{&quot;\t&quot;}{end}{&quot;\n&quot;}{end}' | grep 'POD\|www16-web16-0'
POD     PVC Name
web16-0 www16-web16-0
</code></pre>
