Skip to content

Instantly share code, notes, and snippets.

@w1ndy
Created July 31, 2024 03:43
Show Gist options
  • Save w1ndy/9275c7d9b6ff58eaf5d69507f86a957a to your computer and use it in GitHub Desktop.
Save w1ndy/9275c7d9b6ff58eaf5d69507f86a957a to your computer and use it in GitHub Desktop.
Get mapping between csi volumes and persistent volume claims in rook-ceph
kubectl get pv -o=jsonpath='{range .items[*]}{.spec.csi.volumeHandle}{"\t"}{.spec.claimRef.namespace}{"/"}{.spec.claimRef.name}{"\n"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment