简体   繁体   English

在准备就绪的Kubernetes本地群集上的Kube代理中启用IPVS模式

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

I want to enable the Kube-proxy mode to IPVS in the existing cluster. 我想在现有集群中为IPVS启用Kube-proxy模式。 currently, it is running on IPtables. 当前,它正在IPtables上运行。 how can I change it to IPVS without affecting the existing workload? 如何在不影响现有工作量的情况下将其更改为IPVS?

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. 另外,我的集群是使用kubeadm安装的,但是在安装过程中没有使用配置文件。 what should be the command exactly to enable the IPVS on my cluster. 在群集上启用IPVS的确切命令应该是什么。

documentation1 documentation1

documentation2 documentation2

Edit the configmap 编辑配置图

kubectl edit configmap kube-proxy -n kube-system

change mode from "" to ipvs 将模式从“”更改为ipvs

mode: ipvs

Kill any kube-proxy pods 杀死任何kube-proxy吊舱

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

Verify kube-proxy is started with ipvs proxier 验证kube-proxy已通过ipvs proxier启动

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM