标签: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
标签:kubernetes
原文地址:http://ipcpu.blog.51cto.com/924192/1981200