Created
July 31, 2024 03:43
-
-
Save w1ndy/9275c7d9b6ff58eaf5d69507f86a957a to your computer and use it in GitHub Desktop.
Get mapping between csi volumes and persistent volume claims in rook-ceph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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