老师你好,我部署 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’.