How fix this error "watch chan error: etcdserver: mvcc: required revision has been compacted"?

How fix this error "watch chan error: etcdserver: mvcc: required revision has been compacted"?

我有一个 kubernetes 集群,有两个节点,两个节点用于 etcd,我也在为我的 kubernetes 使用身份验证。当我 运行 这个命令时: kubectl get cs 我得到这个输出:

NAME                 STATUS      MESSAGE                                                                                        ERROR
scheduler            Unhealthy   Get http://127.0.0.1:10251/healthz: dial tcp 127.0.0.1:10251: getsockopt: connection refused   
controller-manager   Healthy     ok                                                                                             
etcd-1               Healthy     {"health": "true"}                                                                             
etcd-0               Healthy     {"health": "true"}   

当我检查我的 kube-apiserver 的日志时,我得到这个错误:

E0516 22:28:14.312855       1 watcher.go:188] watch chan error: etcdserver: mvcc: required revision has been compacted

这是什么错误,我该如何解决?

我的 kube-controller-manager 也收到此警告:

W0516 22:28:14.314137       1 reflector.go:323] k8s.io/kubernetes/pkg/controller/garbagecollector/graph_builder.go:192: watch of <nil> ended with: etcdserver: mvcc: required revision has been compacted

我的 kube-scheduler:

W0516 10:43:38.097940       1 reflector.go:323] k8s.io/kubernetes/plugin/pkg/scheduler/factory/factory.go:451: watch of *v1.Pod ended with: too old resource version: 2153673 (2154157)

我的kubernetes版本是1.6.3

非常感谢您的帮助:)

将 etcd 版本更新到 3.0.11 或更高版本

https://github.com/kubernetes/kubernetes/issues/45506