Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
ede3aad2
Commit
ede3aad2
authored
9 years ago
by
Smana
Browse files
Options
Downloads
Patches
Plain Diff
flannel backend type option
parent
143a75cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+2
-0
2 additions, 0 deletions
README.md
roles/network_plugin/flannel/defaults/main.yml
+4
-0
4 additions, 0 deletions
roles/network_plugin/flannel/defaults/main.yml
roles/network_plugin/flannel/templates/network.json
+1
-1
1 addition, 1 deletion
roles/network_plugin/flannel/templates/network.json
with
7 additions
and
1 deletion
README.md
+
2
−
0
View file @
ede3aad2
...
...
@@ -283,6 +283,8 @@ node1 ansible_ssh_host=95.54.0.12 local_as=xxxxxx
#### 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
```
cat /run/flannel/subnet.env
...
...
This diff is collapsed.
Click to expand it.
roles/network_plugin/flannel/defaults/main.yml
+
4
−
0
View file @
ede3aad2
...
...
@@ -6,3 +6,7 @@ flannel_public_ip: "{{ access_ip|default(ip|default(ansible_default_ipv4.address
## interface that should be used for flannel operations
## This is actually an inventory node-level item
# 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"
This diff is collapsed.
Click to expand it.
roles/network_plugin/flannel/templates/network.json
+
1
−
1
View file @
ede3aad2
{
"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 }}
"
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment