Skip to content

Commit fa880b6

Browse files
authored
Feat: add nftable mode in calico (#12255)
Signed-off-by: ChengHao Yang <[email protected]>
1 parent 6fc1abb commit fa880b6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

roles/network_plugin/calico/templates/calico-node.yml.j2

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ spec:
275275
# Enable or disable usage report
276276
- name: FELIX_USAGEREPORTINGENABLED
277277
value: "{{ calico_usage_reporting }}"
278+
{% if calico_version is version('3.29.0', '>=') %}
279+
- name: FELIX_NFTABLESMODE
280+
value: "{{ calico_nftable_mode }}"
281+
{% endif %}
278282
# Set MTU for tunnel device used if ipip is enabled
279283
{% if calico_mtu is defined %}
280284
# Set MTU for tunnel device used if ipip is enabled

roles/network_plugin/calico_defaults/defaults/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ calico_iptables_lock_timeout_secs: 10
101101
# Choose Calico iptables backend: "Legacy", "Auto" or "NFT" (FELIX_IPTABLESBACKEND)
102102
calico_iptables_backend: "Auto"
103103

104+
# Calico NFTable Mode Support (tech preview 3.29)
105+
# Valid option: Disabled (default), Enabled
106+
calico_nftable_mode: "Disabled"
107+
104108
# Calico Wireguard support
105109
calico_wireguard_enabled: false
106110
calico_wireguard_packages: []

0 commit comments

Comments
 (0)