Enable IPVS Mode in Kube Proxy on a ready Kubernetes Local Cluster

99封情书 提交于 2020-07-03 09:25:10

问题


I want to enable the Kube-proxy mode to IPVS in the existing cluster. currently, it is running on IPtables. how can I change it to IPVS without affecting the existing workload?

I have already installed all the required modules to enable it. Also, my cluster is installed using kubeadm but, I have not used the configuration file during installation. what should be the command exactly to enable the IPVS on my cluster.

documentation1

documentation2


回答1:


Edit the configmap

kubectl edit configmap kube-proxy -n kube-system

change mode from "" to ipvs

mode: ipvs

Kill any kube-proxy pods

kubectl get po -n kube-system
kubectl delete po -n kube-system <pod-name>

Verify kube-proxy is started with ipvs proxier

kubectl logs [kube-proxy pod] | grep "Using ipvs Proxier"


来源:https://stackoverflow.com/questions/56493651/enable-ipvs-mode-in-kube-proxy-on-a-ready-kubernetes-local-cluster

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!