Skip to content
Snippets Groups Projects
Unverified Commit b061cce9 authored by Ryler Hockenbury's avatar Ryler Hockenbury Committed by GitHub
Browse files

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

parent c929b5e8
No related branches found
No related tags found
No related merge requests found
...@@ -14,3 +14,5 @@ ...@@ -14,3 +14,5 @@
# for experimental backend # for experimental backend
# please refer to flannel's docs : https://github.com/coreos/flannel/blob/master/README.md # please refer to flannel's docs : https://github.com/coreos/flannel/blob/master/README.md
# flannel_backend_type: "vxlan" # flannel_backend_type: "vxlan"
# flannel_vxlan_vni: 1
# flannel_vxlan_port: 8472
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
# You can choose what type of flannel backend to use # 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 # please refer to flannel's docs : https://github.com/coreos/flannel/blob/master/README.md
flannel_backend_type: "vxlan" flannel_backend_type: "vxlan"
flannel_vxlan_vni: 1
flannel_vxlan_port: 8472
# Limits for apps # Limits for apps
flannel_memory_limit: 500M flannel_memory_limit: 500M
......
...@@ -32,7 +32,10 @@ data: ...@@ -32,7 +32,10 @@ data:
{ {
"Network": "{{ kube_pods_subnet }}", "Network": "{{ kube_pods_subnet }}",
"Backend": { "Backend": {
"Type": "{{ flannel_backend_type }}" "Type": "{{ flannel_backend_type }}"{% if flannel_backend_type == "vxlan" %},
"VNI": {{ flannel_vxlan_vni }},
"Port": {{ flannel_vxlan_port }}
{% endif %}
} }
} }
--- ---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment