首页 新闻 搜索 专区 学院

k8s 在 prometheus 错误日志:"too old resource version"

0
悬赏园豆:30 [已解决问题] 解决于 2020-01-17 16:33

部署 ServiceMonitor 之后,对应的 service 已经被 prometheus 发现,但 pod 不能被发现,prometheus 日志中出现下面的错误:

watch of *v1.Endpoints ended with: too old resource version: 1973957 (1974030)

请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:38801
提问于:2020-01-17 16:27
< >
分享
最佳答案
0

在 github 上找到了答案,这不是一个问题。

these are nothing to worry about. This is a known occurrence in Kubernetes and is not an issue [0]. The API server ends watch requests when they are very old. The operator uses a client-go informer, which takes care of automatically re-listing the resource and then restarting the watch from the latest resource version.

dudu | 高人七级 |园豆:38801 | 2020-01-17 16:32
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册