couldn't parse external etcd version "": Version string empty
阿新 • • 發佈:2017-11-13
kubernetes
[root@k8s-1 ~]# kubeadm init --config config [kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters. [init] Using Kubernetes version: v1.8.1 [init] Using Authorization modes: [Node RBAC] [preflight] Running pre-flight checks [preflight] Some fatal errors occurred: couldn‘t parse external etcd version "": Version string empty [preflight] 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
[root@k8s-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 [root@k8s-1 ~]#
使用如下命令調通即可。
# curl -L http://10.140.1.40:2379/version {"etcdserver":"3.2.7","etcdcluster":"3.2.0"}
couldn't parse external etcd version "": Version string empty