Preload iptable_filter/ip6table_filter

ServiceLB now requires this module, but it will not get autoloaded by the kubelet if the host is using nftables.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
Brad Davidson 2022-12-13 19:25:00 +00:00 committed by Brad Davidson
parent f8b661d590
commit 0c9b43746b

View File

@ -33,8 +33,10 @@ func Configure(enableIPv6 bool, config *kubeproxyconfig.KubeProxyConntrackConfig
loadKernelModule("nf_conntrack")
loadKernelModule("br_netfilter")
loadKernelModule("iptable_nat")
loadKernelModule("iptable_filter")
if enableIPv6 {
loadKernelModule("ip6table_nat")
loadKernelModule("ip6table_filter")
}
// Kernel is inconsistent about how devconf is configured for