增加flannel vxlan可选开启DirectRouting特性

pull/658/head
gjmzj 2019-07-29 14:09:17 +08:00
parent 6bc21505e1
commit 68dd18a03c
2 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# 设置flannel 后端 # 设置flannel 后端
#FLANNEL_BACKEND: "host-gw" #FLANNEL_BACKEND: "host-gw"
FLANNEL_BACKEND: "vxlan" FLANNEL_BACKEND: "vxlan"
DIRECT_ROUTING: false
#flanneld_image: "quay.io/coreos/flannel:v0.10.0-amd64" #flanneld_image: "quay.io/coreos/flannel:v0.10.0-amd64"
flanneld_image: "easzlab/flannel:v0.11.0-amd64" flanneld_image: "easzlab/flannel:v0.11.0-amd64"

View File

@ -75,6 +75,9 @@ data:
{ {
"Network": "{{ CLUSTER_CIDR }}", "Network": "{{ CLUSTER_CIDR }}",
"Backend": { "Backend": {
{% if FLANNEL_BACKEND == "vxlan" and DIRECT_ROUTING %}
"DirectRouting": true,
{% endif %}
"Type": "{{ FLANNEL_BACKEND }}" "Type": "{{ FLANNEL_BACKEND }}"
} }
} }