Add variable to set direct routing on flannel VXLAN (#9438)
This commit is contained in:
parent
d00508105b
commit
1f54cef71c
3 changed files with 4 additions and 1 deletions
|
@ -16,3 +16,4 @@
|
||||||
# flannel_backend_type: "vxlan"
|
# flannel_backend_type: "vxlan"
|
||||||
# flannel_vxlan_vni: 1
|
# flannel_vxlan_vni: 1
|
||||||
# flannel_vxlan_port: 8472
|
# flannel_vxlan_port: 8472
|
||||||
|
# flannel_vxlan_direct_routing: false
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
flannel_backend_type: "vxlan"
|
flannel_backend_type: "vxlan"
|
||||||
flannel_vxlan_vni: 1
|
flannel_vxlan_vni: 1
|
||||||
flannel_vxlan_port: 8472
|
flannel_vxlan_port: 8472
|
||||||
|
flannel_vxlan_direct_routing: false
|
||||||
|
|
||||||
# Limits for apps
|
# Limits for apps
|
||||||
flannel_memory_limit: 500M
|
flannel_memory_limit: 500M
|
||||||
|
|
|
@ -34,7 +34,8 @@ data:
|
||||||
"Backend": {
|
"Backend": {
|
||||||
"Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %},
|
"Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %},
|
||||||
"VNI": {{ flannel_vxlan_vni }},
|
"VNI": {{ flannel_vxlan_vni }},
|
||||||
"Port": {{ flannel_vxlan_port }}
|
"Port": {{ flannel_vxlan_port }},
|
||||||
|
"DirectRouting": {{ flannel_vxlan_direct_routing | to_json }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue