gpt4 book ai didi

kubernetes - *v1.Pod 的 watch 以 : too old resource version 结束

转载 作者:行者123 更新时间:2023-12-04 03:56:33 26 4
gpt4 key购买 nike

我将 EKS 从 1.16 更新到 1.17。突然间,我开始收到此错误:

pkg/mod/k8s.io/client-go@v0.0.0-20180806134042-1f13a808da65/tools/cache/reflector.go:99: watch of *v1.Pod ended with: too old resource version
检查 git,人们说这不是错误,但我的问题是如何停止接收这些消息?我在使用 EKS 1.16 时没有收到此消息?
Source .

最佳答案

这是一个社区维基答案。随意扩展它。
总之,遇到这些消息就不用担心了。它们意味着在客户端 API 上次获取该监视窗口内的列表之后,有更新版本的监视资源。换句话说:针对 Kubernetes API 的监视超时,并且正在重新启动,这是预期的行为。
您还可以看到被提及 here :

this is perfectly expected, no worries. The messages are several hoursapart.

When nothing happens in your cluster, the watches established by theKubernetes client don't get a chance to get refreshed naturally, andeventually time out. These messages simply indicate that these watchesare being re-created.


here :

these are nothing to worry about. This is a known occurrence inKubernetes and is not an issue [0]. The API server ends watch requestswhen they are very old. The operator uses a client-go informer, whichtakes care of automatically re-listing the resource and thenrestarting the watch from the latest resource version.


所以回答你的问题:

my question is how to stop getting these messages


简单地说,你不 because :

This is working as expected and is not going to be fixed.

关于kubernetes - *v1.Pod 的 watch 以 : too old resource version 结束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63789183/

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