使用k8s 1.18.x版本系统日志,/var/log/messages 里面一直报这个提示
Mar 28 03:26:56 192.168.1.112 kubelet: E0328 03:26:56.729835 46376 kubelet_volumes.go:154] orphaned pod "0003cf99-f75e-4b4f-bd91-ee03b24661b9" found, but volume paths are still present on disk : There were a total of 4093 errors similar to this. Turn up verbosity to see them. Mar 28 03:26:57 192.168.1.112 kubelet: W0328 03:26:57.792202 46376 volume_linux.go:49] Setting volume ownership for /var/lib/kubelet/pods/c2f9b7dc-4517-4b57-9c3c-6f2e4fa19b6b/volumes/kubernetes.io~secret/default-token-6w7fh and fsGroup set. If the volume has a lot of files then setting volume ownership could be slow, see https://github.com/kubernetes/kubernetes/issues/69699 Mar 28 03:26:57 192.168.1.112 kubelet: W0328 03:26:57.792268 46376 volume_linux.go:49] Setting volume ownership for /var/lib/kubelet/pods/c2f9b7dc-4517-4b57-9c3c-6f2e4fa19b6b/volumes/kubernetes.io~configmap/istiod-ca-cert and fsGroup set. If the volume has a lot of files then setting volume ownership could be slow, see https://github.com/kubernetes/kubernetes/issues/69699 Mar 28 03:26:57 192.168.1.112 kubelet: W0328 03:26:57.792268 46376 volume_linux.go:49] Setting volume ownership for /var/lib/kubelet/pods/c2f9b7dc-4517-4b57-9c3c-6f2e4fa19b6b/volumes/kubernetes.io~downward-api/istio-podinfo and fsGroup set. If the volume has a lot of files then setting volume ownership could be slow, see https://github.com/kubernetes/kubernetes/issues/69699
If the volume has a lot of files then setting volume ownership could be slow 问题解决,调整kubelet 日志等级,改为 --v=4 即可,
日志等级文档参考,kubectl-日志输出详细程度和调试
https://aq3.cn/k8s/release-1.17/zh/docs/reference/kubectl/cheatsheet/
方法如下:
隐藏内容需要付费才可以看见
马上购买
请登录之后再进行评论