자격증/CKA
[CKA] Check Resource Information
후드리챱챱
2023. 4. 22. 15:04
반응형
[문제]
- 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.
[풀이]
Kubernetes docs에서 cheatsheet 검색 후 sort 검색하여 참고
https://kubernetes.io/docs/reference/kubectl/cheatsheet/
# kubectl get pv --sort-by=.metadata.name > /var/CKA/my_volumes
# cat /var/CKA/my_volumes
[참고]
- 유투브 따배씨
반응형