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

Add iptables_backend to weave options #6639

Merged
merged 1 commit into from
Sep 10, 2020
Merged
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
3 changes: 3 additions & 0 deletions inventory/sample/group_vars/k8s-cluster/k8s-net-weave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 3 additions & 0 deletions roles/network_plugin/weave/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 4 additions & 0 deletions roles/network_plugin/weave/templates/weave-net.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand Down