kube-proxy.service启动失败
来源:7-11 为集群添加认证授权(下)
慕先生8199797
2019-01-21
老师你好,我部署 kube-proxy的时候,启动失败了。
使用systemctl status kube-proxy输出如下:
root@server01:/etc/kubernetes/ca/kube-proxy# systemctl status kube-proxy
● kube-proxy.service - Kubernetes Kube-Proxy Server
Loaded: loaded (/lib/systemd/system/kube-proxy.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2019-01-20 18:21:37 PST; 3s ago
Docs: https://github.com/GoogleCloudPlatform/kubernetes
Process: 12304 ExecStart=/home/server01/work/docker/kubernetes-bins/kube-proxy --bind-address=192.168.7.202 --hostname-override=192.168.7.202 --kubeconfig=/etc/kubernetes/kube-proxy.kubeconfig --logtost
Main PID: 12304 (code=exited, status=200/CHDIR)
Jan 20 18:21:37 server01 systemd[1]: kube-proxy.service: Main process exited, code=exited, status=200/CHDIR
Jan 20 18:21:37 server01 systemd[1]: kube-proxy.service: Unit entered failed state.
Jan 20 18:21:37 server01 systemd[1]: kube-proxy.service: Failed with result ‘exit-code’.
lines 1-10/10 (END)
失败日志如下:
Jan 20 18:07:31 server01 systemd[1]: Stopped Kubernetes Kube-Proxy Server.
Jan 20 18:07:31 server01 systemd[1]: Started Kubernetes Kube-Proxy Server.
Jan 20 18:07:31 server01 systemd[1]: kube-proxy.service: Main process exited, code=exited, status=200/CHDIR
Jan 20 18:07:31 server01 systemd[1]: kube-proxy.service: Unit entered failed state.
Jan 20 18:07:31 server01 systemd[1]: kube-proxy.service: Failed with result ‘exit-code’.
Jan 20 18:07:31 server01 systemd[1]: Stopped Kubernetes Kube-Proxy Server.
Jan 20 18:09:53 server01 systemd[1]: Started Kubernetes Kube-Proxy Server.
Jan 20 18:09:53 server01 systemd[1]: kube-proxy.service: Main process exited, code=exited, status=200/CHDIR
Jan 20 18:09:53 server01 systemd[1]: kube-proxy.service: Unit entered failed state.
Jan 20 18:09:53 server01 systemd[1]: kube-proxy.service: Failed with result ‘exit-code’.
Jan 20 18:09:59 server01 systemd[1]: kube-proxy.service: Service hold-off time over, scheduling restart.
Jan 20 18:09:59 server01 systemd[1]: Stopped Kubernetes Kube-Proxy Server.
Jan 20 18:09:59 server01 systemd[1]: Started Kubernetes Kube-Proxy Server.
Jan 20 18:09:59 server01 systemd[1]: kube-proxy.service: Main process exited, code=exited, status=200/CHDIR
Jan 20 18:09:59 server01 systemd[1]: kube-proxy.service: Unit entered failed state.
Jan 20 18:09:59 server01 systemd[1]: kube-proxy.service: Failed with result ‘exit-code’.
Jan 20 18:10:04 server01 systemd[1]: kube-proxy.service: Service hold-off time over, scheduling restart.
Jan 20 18:10:04 server01 systemd[1]: Stopped Kubernetes Kube-Proxy Server.
Jan 20 18:10:04 server01 systemd[1]: Started Kubernetes Kube-Proxy Server.
Jan 20 18:10:04 server01 systemd[1]: kube-proxy.service: Main process exited, code=exited, status=200/CHDIR
Jan 20 18:10:04 server01 systemd[1]: kube-proxy.service: Unit entered failed state.
Jan 20 18:10:04 server01 systemd[1]: kube-proxy.service: Failed with result ‘exit-code’.
1回答
-
这个日志也看不出来啥,这样,你把service启动的命令直接拿出来单独运行 看看有什么错误
032021-05-30
相似问题