• Ed Bartosh's avatar
    kubeadm: fix RequiredIPVSKernelModulesAvailable warning message · 09a2e49a
    Ed Bartosh authored
    RequiredIPVSKernelModulesAvailable warning confuses users suggesting
    that the IPVS proxier will not be used, which is not always the case.
    
    Made the warning message less confusing:
    
            [WARNING RequiredIPVSKernelModulesAvailable]:
    The IPVS proxier may not be used because the following required kernel
    modules are not loaded: [ip_vs_rr ip_vs_wrr ip_vs_sh]
    or no builtin kernel ipvs support was found: map[ip_vs_wrr:{}
    ip_vs_sh:{} nf_conntrack_ipv4:{} ip_vs:{} ip_vs_rr:{}].
    However, these modules may be loaded automatically by kube-proxy for you
    if they are available on your system.
    
    To verify IPVS support:
    
       Run "lsmod | grep 'ip_vs\|nf_conntrack'" and verify each of the above
    modules are listed.
    
    If they are not listed, you can use the following methods to load them:
    
    1. For each missing module run 'modprobe $modulename' (e.g., 'modprobe
    ip_vs', 'modprobe ip_vs_rr', ...)
    2. If 'modprobe $modulename' returns an error, you will need to install
    the missing module support for your kernel.
    
    Fixes: kubernetes/kubeadm#975
    09a2e49a
kernelcheck_linux.go 3.41 KB