mirror of https://github.com/k3s-io/k3s
Improve the ipvs error message
parent
d3fe0ea7ff
commit
73e3d8a081
|
@ -451,7 +451,7 @@ func (handle *LinuxKernelHandler) GetModules() ([]string, error) {
|
|||
builtinModsFilePath := fmt.Sprintf("/lib/modules/%s/modules.builtin", kernelVersion)
|
||||
b, err = ioutil.ReadFile(builtinModsFilePath)
|
||||
if err != nil {
|
||||
glog.Errorf("Failed to read file %s with error %v", builtinModsFilePath, err)
|
||||
glog.Warningf("Failed to read file %s with error %v. You can ignore this message when kube-proxy is running inside container without mounting /lib/modules", builtinModsFilePath, err)
|
||||
}
|
||||
var bmods []string
|
||||
for _, module := range ipvsModules {
|
||||
|
|
Loading…
Reference in New Issue