gpt4 book ai didi

docker - Kubernetes 1.18警告ImageGCFailed错误无法获取imageFs信息:无法在内存缓存中找到数据

转载 作者:行者123 更新时间:2023-12-02 12:11:51 34 4
gpt4 key购买 nike

我在Centos 7上带来了Kubernetes 1.18。我们还使用了定制的CIDR

kubectl apply -f“https://cloud.weave.works/k8s/net?k8s-version= $(kubectl版本| base64 | tr -d'\ n')&env.IPALLOC_RANGE = IPALLOC

最初,Kubernetes正常出现。但是,当我们多次运行同一个Pod来测试Kubelet时,每5秒就会重新启动一次。

我检查的时候

Kubectl get events


7m43s       Normal    Starting                  node/rajasvm   Starting kubelet.
7m43s Normal NodeHasSufficientMemory node/rajasvm Node rajasvm status is now: NodeHasSufficientMemory
7m43s Normal NodeHasNoDiskPressure node/rajasvm Node rajasvm status is now: NodeHasNoDiskPressure
7m43s Normal NodeHasSufficientPID node/rajasvm Node rajasvm status is now: NodeHasSufficientPID
7m26s Normal Starting node/rajasvm Starting kubelet.
7m26s Normal NodeHasSufficientMemory node/rajasvm Node rajasvm status is now: NodeHasSufficientMemory
7m26s Normal NodeHasNoDiskPressure node/rajasvm Node rajasvm status is now: NodeHasNoDiskPressure
7m26s Normal NodeHasSufficientPID node/rajasvm Node rajasvm status is now: NodeHasSufficientPID
7m9s Normal Starting node/rajasvm Starting kubelet.
7m9s Warning ImageGCFailed node/rajasvm failed to get imageFs info: unable to find data in memory cache
6m52s Normal Starting node/rajasvm Starting kubelet.
6m35s Normal Starting node/rajasvm Starting kubelet.
6m35s Normal NodeHasSufficientMemory node/rajasvm Node rajasvm status is now: NodeHasSufficientMemory
6m35s Normal NodeHasNoDiskPressure node/rajasvm Node rajasvm status is now: NodeHasNoDiskPressure
6m35s Normal NodeHasSufficientPID node/rajasvm Node rajasvm status is now: NodeHasSufficientPID

journalctl -u kubelet | grep -i garbage


May 27 17:00:05 rajasvm kubelet[20241]: E0527 17:00:05.374190   20241 kubelet.go:1305] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
May 27 17:00:22 rajasvm kubelet[20401]: E0527 17:00:22.152485 20401 kubelet.go:1305] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
May 27 17:00:39 rajasvm kubelet[20548]: E0527 17:00:39.141443 20548 kubelet.go:1305] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
May 27 17:00:55 rajasvm kubelet[20693]: E0527 17:00:55.953994 20693 kubelet.go:1305] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
May 27 17:01:12 rajasvm kubelet[20848]: E0527 17:01:12.668267 20848 kubelet.go:1305] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
May 27 17:01:29 rajasvm kubelet[20994]: E0527 17:01:29.676793 20994 kubelet.go:1305] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
May 27 17:01:46 rajasvm kubelet[21136]: E0527 17:01:46.367956 21136 kubelet.go:1305] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
May 27 17:02:03 rajasvm kubelet[21282]: E0527 17:02:03.181850 21282 kubelet.go:1305] Image garbage collection failed once. Stats initialization may not have completed yet: failed to get imageFs info: unable to find data in memory cache
May 27 17:02:03 rajasvm kubelet[21282]: E0527 17:02:03.181865 21282 kubelet.go:1301] Image garbage collection failed multiple times in a row: failed to get imageFs info: unable to find data in memory cache

请让我知道如何解决此问题。

最佳答案

我找到了解决方案,看起来删除的docker镜像似乎无法正确清理,对此一无所知。但是下面的解决方案对我有用

docker system prune
systemctl stop kubelet
systemctl stop docker
systemctl start docker
systemctl start kubelet

关于docker - Kubernetes 1.18警告ImageGCFailed错误无法获取imageFs信息:无法在内存缓存中找到数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62020493/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com