1、问题:kubectl -n project-single get pod 查看节点信息时,节点报错

pod节点报错:failed to try resolving symlinks in path "/var/log/pods/project-single_seriesapi-prod-649c87d45c-plwpw_d2fac1a5-c537-48aa-8115-60246a4a83a5/base/61.log": lstat /var/log/pods/project-single_seriesapi-prod-649c87d45c-plwpw_d2fac1a5-c537-48aa-8115-60246a4a83a5/base/61.log: no such file or directory

通过kubectl describe pod pod名称 -n 命名空间,来查看pod信息,Message:      error while creating mount source path '/var/lib/kubelet/pods/ac11e495-748f-4cd7-a7f8-3a673894d455/volumes/kubernetes.io~secret/default-token-8smbw': mkdir /var/lib/kubelet: read-only file system

解决方案:重启docker      systemctl restart docker.service    systemctl restart docker.socket

原因:可能是docker配置出现问题,重启docker时未能全部重启成功。

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐