PVC Inspector

Pod to inspect a persistent volume claim by mounting it in a custom container, see https://frank.sauerburger.io/2021/12/01/inspect-k8s-pvc.html

Parameters

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