安装kubernetes时法兰绒无法启动

时间:2018-01-26 08:31:41

标签: docker kubernetes

我安装了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]

有没有人可以帮我这个?

1 个答案:

答案 0 :(得分:0)

卷曲您定义的端点。您可能需要将法兰绒指向您的主节点。

t2

尝试一下,然后重新启动flanneld。