本文主要是介绍CKA-题目练习笔记-仅供参考,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
练习题
重要知识点练习笔记
练习一
Set confifiguration context $kubectl confifig use-context k8s.
Monitor the logs of Pod foobar and Extract log lines corresponding to error unable-to-access-website . Write them to /opt/KULM00201/foobar.
kubectl config use-context k8s
mkdir /opt/KULM00201/
kubectl logs foobar | grep 'unable-to-access-website' > /opt/KULM00201/foobar
练习二
Set configuration context $kubectl config use-context k8s. List all PVs sorted by name, saving the full
kubectl output to /opt/KUCC0010/my_volumes. Use kubectl own functionally for sorting the output, and
do not manipulate it any further.
这篇关于CKA-题目练习笔记-仅供参考的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!