Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
Load ipvs modules before enabling conntrack
Browse files Browse the repository at this point in the history
  • Loading branch information
mneverov committed Aug 22, 2023
1 parent 8a78a86 commit c1c43b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backends/ipvs/internal/ipvs/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ func initializeKernelConfig(kernelHandler KernelHandler) error {
klog.Info("Missing br-netfilter module or unset sysctl br-nf-call-iptables, proxy may not work as intended")
}

_, err := kernelHandler.GetModules()
if err != nil {
return err
}

// Set the conntrack sysctl we need for
if err := EnsureSysctl(sysctl, sysctlVSConnTrack, 1); err != nil {
return err
Expand Down

0 comments on commit c1c43b4

Please sign in to comment.