Allow configureable vni and port for flannel overlay (#5939)

This commit is contained in:
Ryler Hockenbury 2020-04-15 06:14:02 -04:00 committed by GitHub
parent c929b5e82e
commit b061cce913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -14,3 +14,5 @@
# for experimental backend
# please refer to flannel's docs : https://github.com/coreos/flannel/blob/master/README.md
# flannel_backend_type: "vxlan"
# flannel_vxlan_vni: 1
# flannel_vxlan_port: 8472

View file

@ -17,6 +17,8 @@
# You can choose what type of flannel backend to use
# please refer to flannel's docs : https://github.com/coreos/flannel/blob/master/README.md
flannel_backend_type: "vxlan"
flannel_vxlan_vni: 1
flannel_vxlan_port: 8472
# Limits for apps
flannel_memory_limit: 500M

View file

@ -32,7 +32,10 @@ data:
{
"Network": "{{ kube_pods_subnet }}",
"Backend": {
"Type": "{{ flannel_backend_type }}"
"Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %},
"VNI": {{ flannel_vxlan_vni }},
"Port": {{ flannel_vxlan_port }}
{% endif %}
}
}
---