From 23f9c63bf3b422fb362222a0715891f188da34af Mon Sep 17 00:00:00 2001 From: Rohith Date: Thu, 1 Mar 2018 21:31:39 +0000 Subject: [PATCH] Kube Proxy IPVS Kernel Module - fixing the the 'Could not get ipvs family information from the kernel. It is possible that ipvs is not enabled in your kernel. Native loadbalancing will not work until this is fixed.' error --- nodeup/pkg/model/kube_proxy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodeup/pkg/model/kube_proxy.go b/nodeup/pkg/model/kube_proxy.go index ed4b06333df4c..3dc7b458c82ee 100644 --- a/nodeup/pkg/model/kube_proxy.go +++ b/nodeup/pkg/model/kube_proxy.go @@ -204,6 +204,8 @@ func (b *KubeProxyBuilder) buildPod() (*v1.Pod, error) { { addHostPathMapping(pod, container, "kubeconfig", "/var/lib/kube-proxy/kubeconfig") addHostPathMapping(pod, container, "logfile", "/var/log/kube-proxy.log").ReadOnly = false + // @note: mapping the host modules directory to fix the missing ipvs kernel module + addHostPathMapping(pod, container, "modules", "/lib/modules") // Map SSL certs from host: /usr/share/ca-certificates -> /etc/ssl/certs sslCertsHost := addHostPathMapping(pod, container, "ssl-certs-hosts", "/usr/share/ca-certificates")