k8s pod重启前的日志查看
kubectl logs -p pod名称-p:previous,上一个,前一个。-p, --previous[=false]: If true, print the logs for the previous instance of the container in a pod if it exists.如果容器的前一个实例存在,则在pod中打印它的日志。...
·
kubectl logs -p pod名称
-p:previous,上一个,前一个。
-p, --previous[=false]: If true, print the logs for the previous instance of the container in a pod if it exists.
如果容器的前一个实例存在,则在pod中打印它的日志。
更多推荐
已为社区贡献4条内容
所有评论(0)