Fix flannel configuration to support multiple flannel networks.

This commit is contained in:
Tomofumi Hayashi
2018-05-14 14:27:42 +09:00
parent 215ddb5a1d
commit 8dda8a5984

View File

@@ -103,7 +103,7 @@ spec:
- name: flannel-etcdctl - name: flannel-etcdctl
image: quay.io/coreos/etcd:latest image: quay.io/coreos/etcd:latest
command: ["etcdctl"] command: ["etcdctl"]
args: ["--endpoints=http://10.1.1.1:12379", "set", "/flannel2/network/config", '{ "Network": "10.5.0.0/16", "Backend": {"Type": "vxlan"}}'] args: ["--endpoints=http://10.1.1.1:12379", "set", "/flannel2/network/config", '{ "Network": "10.5.0.0/16", "Backend": {"Type": "vxlan", "VNI": 2}}']
hostNetwork: true hostNetwork: true
nodeName: kube-master nodeName: kube-master
restartPolicy: Never restartPolicy: Never