Linux_Foundation
CKA · Question #2
List all persistent volumes sorted by capacity, saving the full kubectl output to /opt/KUCC00102/volume_list. Use kubectl 's own functionality for sorting the output, and do not manipulate it any…
kubectl get pv --sort-by=.spec.capacity.storage > /opt/KUCC00102/volume_list
Submitted by stefanr· May 4, 2026Storage
Question
List all persistent volumes sorted by capacity, saving the full kubectl output to /opt/KUCC00102/volume_list. Use kubectl 's own functionality for sorting the output, and do not manipulate it any further.
Exhibits
Explanation
kubectl get pv --sort-by=.spec.capacity.storage > /opt/KUCC00102/volume_list
Topics
#Persistent Volumes#kubectl sorting#command output#storage capacity
Community Discussion
No community discussion yet for this question.

