---
title: "💭 Inspect a Kubernetes PersistentVolumeClaim | Frank Sauerburger"
description: "!https://frank.sauerburger.io/2021/12/01/inspect-k8s-pvc.html"
date: 2023-10-21
published: true
tags:
  - homelab
  - k3s
  - thought
template: link
---


![https://frank.sauerburger.io/2021/12/01/inspect-k8s-pvc.html](/static/https://frank.sauerburger.io/2021/12/01/inspect-k8s-pvc.html)

I was curious to see what was going on inside of my minio object storage. Great technique here by Frank to create an inspector pod, then you can do as you wish with the data.

I created the manifest as `pvc-inspector.yml`

``` yaml
apiVersion: v1
kind: Pod
metadata:
  name: pvc-inspector
spec:
  containers:
  - image: busybox
    name: pvc-inspector
    command: ["tail"]
    args: ["-f", "/dev/null"]
    volumeMounts:
    - mountPath: /pvc
      name: pvc-mount
  volumes:
  - name: pvc-mount
    persistentVolumeClaim:
      claimName: pvc-name
```

Then used it like this.

``` bash
# create pvc-inspector pod
kubectl apply -f pvc-inspector.yml
# exec into inspector
kubectl exec -it pvc-inspector -- sh
# explore data
ls /pvc
# cleanup
kubectl delete -f pvc-inspector.yml
```

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
