couldn't parse external etcd version "": Version string empty
# kubeadm init --config configWARNING: kubeadm is in beta, please do not use it for production clusters.
Using Kubernetes version: v1.8.1
Using Authorization modes:
Running pre-flight checks
Some fatal errors occurred:
couldn't parse external etcd version "": Version string empty
If you know what you are doing, you can skip pre-flight checks with `--skip-preflight-checks`
使用kubeadm安装Kubernetes出现报错,
couldn't parse external etcd version "": Version string empty
意思是:无法获取ETCD的版本号。
多半是配置文件有误,或者etcd监听了127.0.0.1,别人访问不到。导致无法获取版本号号码。
etcd默认监听127.0.0.1
# netstat -tunlp |grep etcd
tcp 0 0 127.0.0.1:2379 0.0.0.0:* LISTEN 23155/etcd
tcp 0 0 127.0.0.1:2380 0.0.0.0:* LISTEN 23155/etcd
#
使用如下命令调通即可。
#curl -L http://10.140.1.40:2379/version
{"etcdserver":"3.2.7","etcdcluster":"3.2.0"}
页:
[1]