kubernetes-Docker二进制故障 etcd启动不了排错
Job for etcd.service failed because the control process exited with error code. See "systemctl status etcd.service" and "journalctl -xe" for details.
·
[root@k8s-master software]# systemctl start etcd.service
Job for etcd.service failed because the control process exited with error code. See "systemctl status etcd.service" and "journalctl -xe" for details.
按照提示输入 systemctl status etcd 和 journalctl -xe 查看
Failed to start Etcd Server. 启动Etcd Server失败。
很明显他说了废话
提示没有etcd
[root@k8s-master software]# cd /opt/kuberneters/bin/
[root@k8s-master bin]# ls
etcd etcdctl
可以看到文件是有的
查看主配置文件 vim /opt/kubernetes/cfg/etcd
查看脚本文件
复制脚本里的目录查看发现 没有文件或目录 机智的我发现 原来是kubernetes 写成了 kuberneters
再次启动 就可以启动成功了
[root@k8s-master ~]# systemctl start etcd.service
^C
[root@k8s-master ~]# netstat -anptu | grep etcd
tcp 0 0 192.168.50.11:2379 0.0.0.0:* LISTEN 10637/etcd
tcp 0 0 127.0.0.1:2379 0.0.0.0:* LISTEN 10637/etcd
tcp 0 0 192.168.50.11:2380 0.0.0.0:* LISTEN 10637/etcd
[root@k8s-master ~]# ps -ef | grep etcd
root 10637 1 2 00:36 ? 00:00:01 /opt/kubernetes/bin/etcd --name=etcd01 --data-dir=/var/lib/etcd/default.etcd --listen-peer-urls=https://192.168.50.11:2380 --listen-client-urls=https://192.168.50.11:2379,http://127.0.0.1:2379 --advertise-client-urls=https://192.168.50.11:2379 --initial-advertise-peer-urls=https://192.168.50.11:2380 --initial-cluster=etcd01=https://192.168.50.11:2380,etcd02=https://192.168.50.12:2380,etcd03=https://192.168.50.13:2380 --initial-cluster-token=etcd01=https://192.168.50.11:2380,etcd02=https://192.168.50.12:2380,etcd03=https://192.168.50.13:2380 --initial-cluster-state=new --cert-file=/opt/kubernetes/ssl/server.pem --key-file=/opt/kubernetes/ssl/server-key.pem --peer-cert-file=/opt/kubernetes/ssl/server.pem --peer-key-file=/opt/kubernetes/ssl/server-key.pem --trusted-ca-file=/opt/kubernetes/ssl/ca.pem --peer-trusted-ca-file=/opt/kubernetes/ssl/ca.pem
root 10652 8299 0 00:37 pts/0 00:00:00 grep --color=auto etcd
更多推荐
已为社区贡献2条内容
所有评论(0)