Print PVC names and bound storage sizes.
Section: JSONPath Output Recipes
List pvc capacities
bash
bash
kubectl get pvc -n data -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.capacity.storage}{"\n"}{end}'Explanation
Print PVC names and bound storage sizes.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing JSONPath Output Recipes