File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,13 @@ kube_service_addresses: 10.254.0.0/16
1515kube_overlay_ip : 4.0.0.0
1616# Prefix length of kube_overlay_ip range.
1717kube_overlay_prefix : 16
18-
18+ # Flannel registers an interface with etcd
19+ # and this interface gets a unique subnet for all its docker containers.
20+ # Thus, the value you use here needs to be unique on ALL nodes of your cluster.
21+ # In vagrant setups, this often is eth1 (eth0 is the bridge sometimes).
22+ # HINT: If your nodes are spinning up containers w/ the same IP subnet,
23+ # then you messed it up !
24+ flannel_iface : eth0
1925
2026# Internal DNS configuration.
2127# Kubernetes can create and mainatain its own DNS server to resolve service names
Original file line number Diff line number Diff line change @@ -8,5 +8,7 @@ FLANNEL_ETCD="http://{{ groups['etcd'][0] }}:4001"
88FLANNEL_ETCD_KEY="/coreos.com/network"
99
1010# Any additional options that you want to pass
11- #FLANNEL_OPTIONS=""
12-
11+ # In this case, we give it an interface, especially important
12+ # for cases such as vagrant, where eth0 might be a bridge, and you
13+ # want to use eth1.
14+ FLANNEL_OPTIONS="--iface={{ flannel_iface }}"
You can’t perform that action at this time.
0 commit comments