K8S中iptables和ipvs区别

https://blog.csdn.net/qq_36807862/article/details/106068871

 

kubectl edit cm kube-proxy -n kube-system
//修改
kind: KubeProxyConfiguration
metricsBindAddress: 127.0.0.1:10249
mode: "ipvs"
//重启kube-proxy
kubectl get pod -n kube-system |grep kube-proxy |awk '{system("kubectl delete pod "$1" -n kube-system")}'
//查看是否已启动新pod
//用logs查看是否有错误,是否是ipvs模式    

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐