我正在安装kubernetes,但是docker和kube-apiserver都无法启动。通过日记,发现原因是法兰绒。因此,我尝试启动绒布,但失败了。这是输出信息:
Job for flanneld.service failed because a timeout was exceeded. See "systemctl status flanneld.service" and "journalctl -xe" for details.
然后,我输入
systemctl status flanneld.service
,结果如下:● flanneld.service - Flanneld overlay address etcd agent
Loaded: loaded (/usr/lib/systemd/system/flanneld.service; enabled; vendor preset: disabled)
Active: activating (start) since Fri 2018-01-26 03:28:08 EST; 51s ago
Main PID: 5870 (flanneld)
Memory: 6.5M
CGroup: /system.slice/flanneld.service
└─5870 /usr/bin/flanneld -etcd-endpoints=http://127.0.0.1:2379 -etcd-prefix=/atomic.io/network
Jan 26 03:28:50 node-1 flanneld-start[5870]: E0126 03:28:50.755931 5870 network.go:102] failed to retrieve network config: 100: Key not found (/atomic.io) [23858]
有谁可以帮助我吗?
最佳答案
curl 您定义的端点。您可能需要将法兰绒指向您的主节点。
/etc/sysconfig/flanneld
FLANNEL_ETCD_ENDPOINTS="http://<master ip>:2379"
FLANNEL_ETCD_PREFIX="/kube-centos/network"
尝试该操作,然后重新启动flanneld。
关于docker - 安装Kubernetes时绒布无法启动,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48457919/