k8s

CKA 준비 (21) Check Resource Information

Joon0464 2022. 6. 24. 20:22

이 게시물은 아래 강의를 참고 하였습니다.
참고 강의 https://www.youtube.com/watch?v=KdATmTulf7s&list=PLApuRlvrZKojqx9-wIvWP3MPtgy2B372f&index=1 

 

 

 

 

문제)

  • List all 'PV's sorted by name saving the full kubectl output to /var/CKA2022/my_volumes.
  • Use kubectl's own functionally for sorting the output, and do not manipulate it any further.

풀이)

$ kubectl get pv --sort-by=metadata.name