kubelet服务状态为activating (auto-restart)

来源:7-5 基础集群部署(上)

nigui

2018-12-20

在工作节点配置kubelet时,发现服务状态如下,

root@server02:~# service kubelet status
● kubelet.service - Kubernetes Kubelet
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2018-12-19 23:07:50 P
网上查了说这是因为K8S未初始化,请问是这个原因是吗?要怎样处理呢?

root@server02:~# journalctl -f -u kubelet
– Logs begin at Wed 2018-12-19 23:05:10 PST. –
Dec 20 00:38:06 server02 systemd[1]: Failed to start Kubernetes Kubelet.
Dec 20 00:38:06 server02 systemd[1]: kubelet.service: Unit entered failed state.
Dec 20 00:38:06 server02 systemd[1]: kubelet.service: Failed with result ‘exit-code’.
Dec 20 00:38:11 server02 systemd[1]: kubelet.service: Service hold-off time over, scheduling restart.
Dec 20 00:38:11 server02 systemd[1]: Stopped Kubernetes Kubelet.
Dec 20 00:38:11 server02 systemd[1]: Starting Kubernetes Kubelet…
Dec 20 00:38:11 server02 systemd[1]: kubelet.service: Main process exited, code=exited, status=203/EXEC
Dec 20 00:38:12 server02 systemd[1]: Failed to start Kubernetes Kubelet.
Dec 20 00:38:12 server02 systemd[1]: kubelet.service: Unit entered failed state.
Dec 20 00:38:12 server02 systemd[1]: kubelet.service: Failed with result ‘exit-code’.

写回答

1回答

刘果国

2018-12-20

同学好,先确认一下master节点是否正常启动,查看日志是否有异常。

如果主节点正常的话,看一下kubelet的详细错误信息。你发的这个只是systemd的调度信息,仔细看一下应该会有kubelet的错误信息

0
2
nigui
非常感谢!
2018-12-21
共2条回复

Docker+Kubernetes(k8s)微服务容器化实践

从开发到编排,快速,完整,深入的掌握微服务

2607 学习 · 607 问题

查看课程