摘要: 一、get pods的诡异现象记录 #Init的状态的pod已经不是Running了,但是它恢复后pod的name不会变,而且RESTARTS的次数为0,注意下这个!!! root@xx-qq-bj:~# kubectl --kubeconfig ~/.kube/config_prod -n pro 阅读全文
posted @ 2022-11-02 23:18 arun_yh 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 一、打印先前退出容器 # -p, --previous=false: If true, print the logs for the previous instance of the container in a pod if it exists.# -p参数应用场景为 --> 可以打印一个pods 阅读全文
posted @ 2022-11-02 23:04 arun_yh 阅读(45) 评论(0) 推荐(0) 编辑