有关向master添加slave的错误

时间:2016-06-07 03:48:04

标签: kubernetes

建立一个主要的localy。

我正在尝试使用/kubernetes/docs/getting-started-guides/docker-multinode/master.sh

主人完成了!

一些细节信息:

K8S_VERSION is set to: 1.2.4
ETCD_VERSION is set to: 2.2.1
FLANNEL_VERSION is set to: 0.5.5
FLANNEL_IFACE is set to: wlan0
FLANNEL_IPMASQ is set to: true
MASTER_IP is set to: 192.168.1.104
ARCH is set to: amd64
Detecting your OS distro ...
Starting bootstrap docker ...
Starting k8s ...
4fa730ca61727c165345885639cbef4d5a34b5d0fa3a361c13b0abc3ead0dd58
{ "Network": "10.1.0.0/16", "Backend": {"Type": "vxlan"}}
vDOCKER_OPTS="$DOCKER_OPTS --mtu=1450 --bip=10.1.48.1/24"

接下来将一个vagrant virtualbox slave添加到master。

尝试使用/kubernetes/docs/getting-started-guides/docker-multinode/worker.sh

它带来了一些问题:

K8S_VERSION is set to: 1.2.4
FLANNEL_VERSION is set to: 0.5.5
FLANNEL_IFACE is set to: wlan0
FLANNEL_IPMASQ is set to: true
MASTER_IP is set to: 192.168.1.104
ARCH is set to: amd64
Detecting your OS distro ...
Starting bootstrap docker ...
Starting k8s ...
Error response from daemon: lstat /var/lib/docker-bootstrap/aufs/mnt/8881a46cdd1fe51b7f0f86e8659bc8f9c905089b0d86a273e85d134
c637041c1/tmp/flannel/subnet.env: no such file or directory

我有两个vm,

一个是关于public_network:192.168.1.110

其他是在private_network:192.168.50.2

所有错误输出都是一样的。

ps:我可以在aws ec2中使用worker.sh吗?

问题有点杂, 希望牛能帮助我巩固。

1 个答案:

答案 0 :(得分:0)

我很幸运能够通过工作节点,但我不知道确切的原因。

现在我将流浪盒打包到谷歌云盘中,网址低于---- [https://drive.google.com/file/d/0B9WzutmgDDrodkpLRGM2c0J1RXc/view?usp=sharing][1]

在使用公共或私人网络之前,您应该下载预编译的kubernetes版本,并将其复制到vagrant文​​件夹。

使用z开始。