k8s 在 prometheus 错误日志:"too old resource version"怎么回事?

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

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

请问如何解决?


k8s
prometheus
2023-07-12 13:39:44
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
被窝终结者

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.

已于2023-7-12 15:19:06修改
分享
微博
QQ
微信
回复
2023-07-12 15:18:31
相关问题
k8s 集群 dns 解析问题
1344浏览 • 1回复 待解决
k8s 集群 coredns pod 部署异常
1241浏览 • 1回复 待解决
k8s 上部署 nodelocaldns 的问题
1734浏览 • 1回复 待解决
K8s 无法删除 namespace 的问题
1163浏览 • 1回复 待解决
k8s 加入新 node 后的 pod 调度问题
1064浏览 • 1回复 待解决
k8s强制删除所有Pending的po
6102浏览 • 1回复 待解决
如何在 k8s 上部署 Redis 服务?
2262浏览 • 1回复 待解决
K8S 如何删除 node有知道的吗?
1682浏览 • 1回复 待解决
k8s 部署 springboot 项目有懂的吗?
2250浏览 • 1回复 待解决
ob是否支持k8s部署,有知道的吗?
3468浏览 • 2回复 待解决
Redis集群和K8S集群有什么关联吗
2520浏览 • 1回复 待解决
K8s访问基于Linx环境的Ftp报错,求支援
3069浏览 • 1回复 待解决
Docker 和 k8s 应该先学哪个比较好?
4939浏览 • 1回复 待解决
k8s 中使用 coredns 重写主机名的问题
1358浏览 • 1回复 待解决