Browse Source

Add iptables_backend to weave options (#6639)

pull/6661/head
Florian Ruynat 4 years ago
committed by GitHub
parent
commit
1712ba1198
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions
  1. 3
      inventory/sample/group_vars/k8s-cluster/k8s-net-weave.yml
  2. 3
      roles/network_plugin/weave/defaults/main.yml
  3. 4
      roles/network_plugin/weave/templates/weave-net.yml.j2

3
inventory/sample/group_vars/k8s-cluster/k8s-net-weave.yml

@ -53,6 +53,9 @@
# only with Weave IPAM (default).
# weave_no_masq_local: true
# set to nft to use nftables backend for iptables (default is iptables)
# weave_iptables_backend: iptables
# Extra variables that passing to launch.sh, useful for enabling seed mode, see
# https://www.weave.works/docs/net/latest/tasks/ipam/ipam/
# weave_extra_args: ~

3
roles/network_plugin/weave/defaults/main.yml

@ -53,6 +53,9 @@ weave_mtu: 1376
# only with Weave IPAM (default).
weave_no_masq_local: true
# set to nft to use nftables backend for iptables (default is iptables)
weave_iptables_backend: ~
# Extra variables that passing to launch.sh, useful for enabling seed mode, see
# https://www.weave.works/docs/net/latest/tasks/ipam/ipam/
weave_extra_args: ~

4
roles/network_plugin/weave/templates/weave-net.yml.j2

@ -163,6 +163,10 @@ items:
{% if weave_status_addr %}
- name: WEAVE_STATUS_ADDR
value: "{{ weave_status_addr }}"
{% endif %}
{% if weave_iptables_backend %}
- name: IPTABLES_BACKEND
value: "{{ weave_iptables_backend }}"
{% endif %}
- name: WEAVE_MTU
value: "{{ weave_mtu | int }}"

Loading…
Cancel
Save