找不到Kubernetes docker flannel子文件

时间:2016-03-01 08:30:41

标签: ubuntu docker containers kubernetes

我想在docker上设置kubernetes多节点集群 http://kubernetes.io/v1.1/docs/getting-started-guides/docker-multinode/master.html。

单节点设置正常。但是对于多节点设置,我遇到了几个问题:https://github.com/kubernetes/kubernetes/issues/22256

最重要的是:

sudo docker -H unix:///var/run/docker.sock exec someHash cat /run/flannel/subnet.env
cat: can't open '/run/flannel/subnet.env': No such file or directory

我不认为它是1.10泊坞机的问题? https://github.com/kubernetes/kubernetes/issues/19720

这可能类似https://groups.google.com/forum/#!topic/google-containers/nGX1XfZ0bE8(参见leto12,01.06.15的帖子)

leto12 /var/lib/docker/aufs/diff/8f390f0c044c536483a090913290a0bffb9820f0e6376133f8299a98facbd199/tmp/flannel建议的查找向我显示此文件 - 但是,我无法访问它。

1 个答案:

答案 0 :(得分:1)

“subnet.env”文件由Flannel生成。应该在Flannel运行后启动Docker。请尝试以下步骤:

Step 1: stop docker and flannel;
Step 2: delete docker0 and flannel.1;
Step 3: start flannel and check its status;
Step 4: start docker and check its status.

检查docker是否使用参数"--bip" "--ip-masq" and "--mtu"运行。