Skip to content

Commit

Permalink
load nfnetlink_queue module for kindlent
Browse files Browse the repository at this point in the history
  • Loading branch information
hakman committed Jan 2, 2025
1 parent b268a4b commit 2adca1e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions upup/pkg/fi/nodeup/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,10 +562,18 @@ func modprobe(module string) error {
// loadKernelModules is a hack to force br_netfilter to be loaded
// TODO: Move to tasks architecture
func loadKernelModules(context *model.NodeupModelContext) error {
err := modprobe("br_netfilter")
if err != nil {
// TODO: Return error in 1.11 (too risky for 1.10)
klog.Warningf("error loading br_netfilter module: %v", err)
{
err := modprobe("br_netfilter")
if err != nil {
// TODO: Return error in 1.11 (too risky for 1.10)
klog.Warningf("error loading br_netfilter module: %v", err)
}
}
if context.NodeupConfig.Networking.Kindnet != nil {
err := modprobe("nfnetlink_queue")
if err != nil {
return fmt.Errorf("loading nfnetlink_queue module: %w", err)
}
}
// TODO: Add to /etc/modules-load.d/ ?
return nil
Expand Down

0 comments on commit 2adca1e

Please sign in to comment.