简体   繁体   English

Kube 代理 - IPVS 代理将不会被使用,因为以下必需的内核模块未加载:[ip_vs_wrr ip_vs_sh]

[英]Kube Proxy - IPVS proxier will not be used because the following required kernel modules are not loaded: [ip_vs_wrr ip_vs_sh]

I have setup Kubernetes 1.15 cluster on CentOS 7.6 server using IPVS.我已经使用 IPVS 在 CentOS 7.6 服务器上设置了 Kubernetes 1.15 集群。 when I reboot the server kube-proxy changing to iptables mode.当我重新启动服务器 kube-proxy 更改为 iptables 模式时。 If I run modprobe -a ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh nf_conntrack_ipv4 command and restart the kube-proxy on that node kube-proxy starting in IPVS mode.如果我运行modprobe -a ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh nf_conntrack_ipv4命令并在 IPVS 模式下启动该节点上的 kube-proxy kube-proxy。

What is the best way to fix this issue during the reboot?在重新启动期间解决此问题的最佳方法是什么?

Thanks谢谢

SR SR

Did you mark the required modules to load at boot time, automatically?您是否自动标记了在启动时加载所需的模块?

You can edit the file /etc/modules (or create a new file in /etc/modules-load.d ) containing names of required ones您可以编辑包含所需名称的文件/etc/modules (或在/etc/modules-load.d创建一个新文件)

ip_vs
ip_vs_rr
ip_vs_wrr
ip_vs_sh
nf_conntrack_ipv4

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

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