什么是"提供的手表的资源版本太旧"来自事件导出器容器的警告?

Mig*_*ark 12 kubernetes google-kubernetes-engine

我们在事件导出器容器的GCP kubernetes集群事件日志中收到了很多警告.

event-exporter  Jun 4, 2018, 10:45:15 AM    W0604 14:45:15.416504 1 reflector.go:323] github.com/GoogleCloudPlatform/k8s-stackdriver/event-exporter/watchers/watcher.go:55: watch of *v1.Event ended with: The resourceVersion for the provided watch is too old.
event-exporter  Jun 4, 2018, 10:37:04 AM    W0604 14:37:04.331239 1 reflector.go:323] github.com/GoogleCloudPlatform/k8s-stackdriver/event-exporter/watchers/watcher.go:55: watch of *v1.Event ended with: The resourceVersion for the provided watch is too old.
event-exporter  Jun 4, 2018, 10:28:37 AM    W0604 14:28:37.249901 1 reflector.go:323] github.com/GoogleCloudPlatform/k8s-stackdriver/event-exporter/watchers/watcher.go:55: watch of *v1.Event ended with: The resourceVersion for the provided watch is too old.
event-exporter  Jun 4, 2018, 10:21:38 AM    W0604 14:21:38.141687 1 reflector.go:323] github.com/GoogleCloudPlatform/k8s-stackdriver/event-exporter/watchers/watcher.go:55: watch of *v1.Event ended with: The resourceVersion for the provided watch is too old.
event-exporter  Jun 4, 2018, 10:15:38 AM    W0604 14:15:38.087389 1 reflector.go:323] github.com/GoogleCloudPlatform/k8s-stackdriver/event-exporter/watchers/watcher.go:55: watch of *v1.Event ended with: The resourceVersion for the provided watch is too old.
event-exporter  Jun 4, 2018, 10:04:35 AM    W0604 14:04:35.981083 1 reflector.go:323] github.com/GoogleCloudPlatform/k8s-stackdriver/event-exporter/watchers/watcher.go:55: watch of *v1.Event ended with: The resourceVersion for the provided watch is too old.
Run Code Online (Sandbox Code Playgroud)

任何人都知道为什么会出现这些警告,我该如何修复它们?谢谢.

小智 1

这意味着在客户端 api 最后一次获取该监视窗口内的列表之后,监视资源有更新版本。

客户端需要重新列出才能获取最新版本。当使用客户端 api 时,这是一种常见的情况,因为日志记录深深地埋藏在其中。