0

昨天的服务很好。但是今天当我检查服务的状态时,我看到:

Mar 11 14:03:16 coreos-1 systemd[1]: scheduler.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Mar 11 14:03:16 coreos-1 systemd[1]: Unit scheduler.service entered failed state.
Mar 11 14:03:16 coreos-1 systemd[1]: scheduler.service failed.
Mar 11 14:03:16 coreos-1 systemd[1]: Starting Kubernetes Scheduler...
Mar 11 14:03:16 coreos-1 systemd[1]: Started Kubernetes Scheduler.
Mar 11 14:08:16 coreos-1 kube-scheduler[4659]: E0311 14:08:16.808349    4659 reflector.go:118] watch of *api.Service ended with error: very short watch
Mar 11 14:08:16 coreos-1 kube-scheduler[4659]: E0311 14:08:16.811434    4659 reflector.go:118] watch of *api.Pod ended with error: unexpected end of JSON input
Mar 11 14:08:16 coreos-1 kube-scheduler[4659]: E0311 14:08:16.847595    4659 reflector.go:118] watch of *api.Pod ended with error: unexpected end of JSON input

真的很困惑,因为 etcd、flannel 和 apiserver 工作正常。

etcd 只有一些奇怪的日志:

Mar 11 20:22:21 coreos-1 etcd[472]: [etcd] Mar 11 20:22:21.572 INFO      | aba44aa0670b4b2e8437c03a0286d779: warning: heartbeat time out peer="6f4934635b6b4291bf29763add9bf4c7" missed=1 backoff="2s"
Mar 11 20:22:48 coreos-1 etcd[472]: [etcd] Mar 11 20:22:48.269 INFO      | aba44aa0670b4b2e8437c03a0286d779: warning: heartbeat time out peer="6f4934635b6b4291bf29763add9bf4c7" missed=1 backoff="2s"
Mar 11 20:48:12 coreos-1 etcd[472]: [etcd] Mar 11 20:48:12.070 INFO      | aba44aa0670b4b2e8437c03a0286d779: warning: heartbeat time out peer="6f4934635b6b4291bf29763add9bf4c7" missed=1 backoff="2s"

所以,我真的被卡住了,不知道出了什么问题。我该如何解决这个问题?或者,我如何查看调度程序的详细信息日志。 journalctl给我同样的日志systemd status

4

1 回答 1

0

请参阅:https ://github.com/GoogleCloudPlatform/kubernetes/issues/5311

这意味着 apiserver 接受了监视请求,但随后立即终止了连接。

如果你偶尔看到它,它意味着一个暂时的错误,并不令人担忧。如果您反复看到它,则表明 apiserver(或 etcd)有问题。

有什么东西真的不适合你吗?

于 2015-03-12T18:22:24.130 回答