Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(untested) allow flannel interface selection #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ kube_overlay_ip: 4.0.0.0
# Prefix length of kube_overlay_ip range.
kube_overlay_prefix: 16

# flannel_iface: Important for folks who want to serve overlay on non-default
# interfaces.
# HINT 1: If your nodes are spinning up containers w/ the same IP subnet,
# then you messed it up, and probably need to set this manually.
# HINT 2: Vagrant or other VM environments may use a BRIDGE as the first interface,
# hence the origin of this parameter was to make vagrant provisioning work on multinode
# setups where default interface is actually a bridge, rather than the private ip.
# flannel_iface: eth1

# Internal DNS configuration.
# Kubernetes can create and mainatain its own DNS server to resolve service names
Expand Down
8 changes: 6 additions & 2 deletions roles/flannel/templates/flanneld.j2
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ FLANNEL_ETCD="http://{{ groups['etcd'][0] }}:4001"
FLANNEL_ETCD_KEY="/coreos.com/network"

# Any additional options that you want to pass
#FLANNEL_OPTIONS=""

# For vagrant clusters or other non-conventional networking setups, you may want to set this.
{% if flannel_iface %}
FLANNEL_OPTIONS="--iface={{ flannel_iface }}"
{% else %}
FLANNEL_OPTIONS=""
{% endif %}