You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(linkerd-cni): add support for plain iptables commands (#449)
Currently the `iptables-mode` for linkerd-cni admits the values `legacy` and `nft`, which make the plugin use the `iptables-legacy[-save]` and `iptables-nft[-save]` commands respectively.
This assumes those commands are available in the node environment, given that linkerd-cni is triggered by the kubelet.
We have found that not to be the case for RHEL, where by default only `iptables[-save]` is available, which is equivalent to the `iptables-nft[-save]` command in other enviroments.
To address this case, this change adds a new possible value `iptables-mode: plain` that makes the plugin use the `iptables[-save]` commands.
This has been tested successfully using RKE2 deployed in RHEL 8.10.
cmd.PersistentFlags().StringVar(&options.IPTablesMode, "iptables-mode", options.IPTablesMode, "Variant of iptables command to use (\"legacy\"or \"nft\"); overrides --firewall-bin-path and --firewall-save-bin-path")
157
+
cmd.PersistentFlags().StringVar(&options.IPTablesMode, "iptables-mode", options.IPTablesMode, "Variant of iptables command to use (\"legacy\", \"nft\"or \"plain\"); overrides --firewall-bin-path and --firewall-save-bin-path")
151
158
cmd.PersistentFlags().BoolVar(&options.IPv6, "ipv6", options.IPv6, "Set rules both via iptables and ip6tables to support dual-stack networking")
152
159
153
160
// these two flags are kept for backwards-compatibility, but --iptables-mode is preferred
0 commit comments