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

2020-01-17 15:57发布

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

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

请问如何解决?

1条回答
forever°为你锁心
2楼-- · 2020-01-17 16:18

在 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.

查看更多
登录 后发表回答