Skip to content

Commit 05c97e7

Browse files
committed
reduce error level due to missing optional ipvs kernel modules
1 parent 77d31a3 commit 05c97e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/minikube/cluster/ha/kube-vip/kube-vip.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ func enableCPLB(cc config.ClusterConfig, r command.Runner, kubeadmCfg []byte) bo
151151
// ref: https://github.com/kubernetes/kubernetes/blob/f90461c43e881d320b78d48793db10c110d488d1/pkg/proxy/ipvs/README.md?plain=1#L257-L269
152152
if driver.IsVM(cc.Driver) {
153153
if _, err := r.RunCmd(exec.Command("sudo", "sh", "-c", "modprobe --all ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh nf_conntrack")); err != nil {
154-
klog.Errorf("unable to load ipvs kernel modules: %v", err)
154+
klog.Warningf("unable to load ipvs kernel modules: %v", err)
155155
return false
156156
}
157157
// for non-vm driver, only try to check if required ipvs kernel modules are already loaded
158158
} else if _, err := r.RunCmd(exec.Command("sudo", "sh", "-c", "lsmod | grep ip_vs")); err != nil {
159-
klog.Errorf("giving up enabling control-plane load-balancing as ipvs kernel modules appears not to be present: %v", err)
159+
klog.Infof("giving up enabling control-plane load-balancing as ipvs kernel modules appears not to be available: %v", err)
160160
return false
161161
}
162162

0 commit comments

Comments
 (0)