From 83da979dc7c7b3e5b6e8c74abd6a6eec80f7cac5 Mon Sep 17 00:00:00 2001 From: Duff Qiu Date: Sat, 23 Dec 2017 15:50:58 +0800 Subject: [PATCH] Update flannel-installation.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加设置网卡的参数 --- practice/flannel-installation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/practice/flannel-installation.md b/practice/flannel-installation.md index c1a6b624a..89c814c02 100644 --- a/practice/flannel-installation.md +++ b/practice/flannel-installation.md @@ -51,6 +51,8 @@ ETCD_PREFIX="/kube-centos/network" FLANNEL_OPTIONS="-etcd-cafile=/etc/kubernetes/ssl/ca.pem -etcd-certfile=/etc/kubernetes/ssl/kubernetes.pem -etcd-keyfile=/etc/kubernetes/ssl/kubernetes-key.pem" ``` +如果是多网卡(例如vagrant环境),则需要在FLANNEL_OPTIONS中增加指定的外网出口的网卡,例如-iface=eth2 + **在etcd中创建网络配置** 执行下面的命令为docker分配IP地址段。 @@ -106,4 +108,4 @@ $etcdctl get /kube-centos/network/subnets/172.30.46.0-24 {"PublicIP":"172.20.0.113","BackendType":"vxlan","BackendData":{"VtepMAC":"e6:b2:fd:f6:66:96"}} ``` -如果可以查看到以上内容证明flannel已经安装完成,下一步是在node节点上安装和配置docker、kubelet、kube-proxy等,请参考下一节[部署node节点](node-installation.md)。 \ No newline at end of file +如果可以查看到以上内容证明flannel已经安装完成,下一步是在node节点上安装和配置docker、kubelet、kube-proxy等,请参考下一节[部署node节点](node-installation.md)。