Skip to content
Snippets Groups Projects
Commit 9baf9e56 authored by Antoine Legrand's avatar Antoine Legrand
Browse files

Merge pull request #169 from kubespray/flannel_backend_option

flannel backend type option
parents 143a75cc ede3aad2
No related branches found
No related tags found
No related merge requests found
...@@ -283,6 +283,8 @@ node1 ansible_ssh_host=95.54.0.12 local_as=xxxxxx ...@@ -283,6 +283,8 @@ node1 ansible_ssh_host=95.54.0.12 local_as=xxxxxx
#### Flannel #### Flannel
You can choose the [backend](https://github.com/coreos/flannel/blob/master/README.md) type by changing the variable **flannel_backend_type** (default: vxlan)
* Flannel configuration file should have been created there * Flannel configuration file should have been created there
``` ```
cat /run/flannel/subnet.env cat /run/flannel/subnet.env
......
...@@ -6,3 +6,7 @@ flannel_public_ip: "{{ access_ip|default(ip|default(ansible_default_ipv4.address ...@@ -6,3 +6,7 @@ flannel_public_ip: "{{ access_ip|default(ip|default(ansible_default_ipv4.address
## interface that should be used for flannel operations ## interface that should be used for flannel operations
## This is actually an inventory node-level item ## This is actually an inventory node-level item
# flannel_interface: # flannel_interface:
# 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"
{ "Network": "{{ kube_pods_subnet }}", "SubnetLen": {{ kube_network_node_prefix }}, "Backend": { "Type": "vxlan" } } { "Network": "{{ kube_pods_subnet }}", "SubnetLen": {{ kube_network_node_prefix }}, "Backend": { "Type": "{{ flannel_backend_type }}" } }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment