Browse Source

Fix Flannel network on CoreOS

Resolves: #748
pull/760/head
Genti Topija 7 years ago
parent
commit
7c2785e083
1 changed files with 4 additions and 0 deletions
  1. 4
      roles/network_plugin/flannel/templates/flannel-options.conf.j2

4
roles/network_plugin/flannel/templates/flannel-options.conf.j2

@ -1,2 +1,6 @@
[Service]
{% if ansible_os_family == "CoreOS" %}
Environment="DOCKER_OPT_BIP=--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }}"
{% else %}
Environment="DOCKER_NETWORK_OPTIONS=--bip={{ flannel_subnet }} --mtu={{ flannel_mtu }}"
{% endif %}
Loading…
Cancel
Save