在工作节点配置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’.