请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

kube-proxy.service启动失败

老师你好,我部署 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启动的命令直接拿出来单独运行 看看有什么错误

0 回复 有任何疑惑可以回复我~
  • 提问者 慕先生8199797 #1
    老师是这样吗?
    root@server01:/etc/kubernetes/ca/kube-proxy# service kube-proxy start
    root@server01:/etc/kubernetes/ca/kube-proxy# 
     没有什么输出呢。
    回复 有任何疑惑可以回复我~ 2019-01-21 10:44:48
  • 刘果国 回复 提问者 慕先生8199797 #2
    不是…… cat一下service文件,把启动命令摘出来。建议先学习一下service的相关基础知识
    回复 有任何疑惑可以回复我~ 2019-01-21 19:55:47
  • 慕村0575368 回复 提问者 慕先生8199797 #3
    同学,最后这个问题你怎么解决的呢
    回复 有任何疑惑可以回复我~ 2021-05-30 16:34:18
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信